R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > RC.capture <- function (expression, collapse = NULL) { + resultConn <- textConnection('RC.resultText', open = 'w', local=TRUE) + sink(resultConn) + on.exit(function() { + sink() + close(resultConn) + }) + expression + on.exit(NULL) + sink() + close(resultConn) + return(paste(c(RC.resultText, ''), collapse = collapse, sep = '')) + } > RC.texteval <- function (sourceText, collapse = NULL, echo = TRUE) { + sourceConn <- textConnection(sourceText, open = 'r') + on.exit(close(sourceConn)) + result <- RC.capture(source(file = sourceConn, local = FALSE, echo = echo, print.eval = TRUE), collapse = collapse) + on.exit(NULL) + close(sourceConn) + res <- '' + for(i in 1:length(result)) { + if (result[i]!='') res <- paste(res,result[i],' + ',sep='') + } + return(res) + } > x <- c(12,11,15,6,13,10,12,14,12,9,10,12,12,11,15,12,10,12,11,12,11,12,13,11,12,13,10,14,12,10,12,8,10,12,12,7,9,12,10,10,10,12,15,10,10,12,13,11,11,12,14,10,12,13,5,6,12,12,11,10,7,12,14,11,12,13,14,11,12,12,8,11,14,14,12,9,13,11,12,12,12,12,12,11,10,9,12,12,12,9,15,12,12,12,10,13,9,12,10,14,11,15,11,11,12,12,12,11,7,12,14,11,10,13,13,8,11,12,11,13,12,14,13,15,10,11,9,11,10,11,8,11,12,12,9,11,10,8,9,8,9,15,11,8,13,12,12,9,7,13,9,6,8,8,6,9,11,8,10,8,14,10,8,11,12,12,12,5,12,10,7,12,11,8,9,10,9,12,6,15,12,12,12,11,7,7,5,12,12,3,11,10,12,9,12,9,12,10,9,12,8,11,11,12,10,10,12,12,11,8,12,10,11,10,8,12,12,10,12,9,6,10,9,9,9,6,10,6,14,10,10,6,12,12,7,8,11,3,6,8,9,9,8,9,7,7,6,9,10,11,12,8,11,3,11,12,7,9,12,8,11,8,10,8,7,8,10,8,12,14,7,6,11,4,9,5,9,11,12,9,12,10,9,6,10,9,13,12) > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2011, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > library(moments) > agostino <- agostino.test(x) > anscombe <- anscombe.test(x) > geary <- geary(x) > jarque <- jarque.test(x) > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Skewness and Kurtosis Test',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('agostino'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('anscombe'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('jarque'),'
',sep='')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('
',RC.texteval('geary'),'
',sep='')) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/1jsox1355152880.tab") > > > > proc.time() user system elapsed 0.296 0.083 0.358