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(17.7569444444444 + ,-10.5625 + ,-10.402777777777 + ,-24.4513888888889 + ,7.7986111111111 + ,56.2847222222222 + ,2.74305555555556 + ,-26.9722222222222 + ,-5.94861111111109 + ,-13.3486111111111 + ,5.71805555555557 + ,-13.8652777777778 + ,53.7569444444445 + ,3.31250000000001 + ,30.8055555555556 + ,-3.40972222222221 + ,-22.1180555555556 + ,-38.6736111111111 + ,-5.21527777777777 + ,7.19444444444444 + ,-0.781944444444449 + ,16.0680555555556 + ,-14.4486111111111 + ,27.1347222222222 + ,3.71527777777779 + ,3.85416666666667 + ,-5.94444444444444 + ,2.88194444444444 + ,-17.5763888888889 + ,-7.21527777777776 + ,-5.96527777777777 + ,-4.84722222222221 + ,-11.4902777777778 + ,-5.80694444444445 + ,1.17638888888889 + ,22.3847222222222 + ,-27.8680555555556 + ,26.3125 + ,-5.77777777777777 + ,6.84027777777779 + ,3.29861111111111 + ,0.659722222222214 + ,29.0347222222222 + ,22.5277777777778 + ,18.5513888888889 + ,8.19305555555556 + ,2.96805555555556 + ,-25.0736111111111 + ,-30.6597222222222 + ,-19.5625 + ,-3.06944444444445 + ,6.38194444444444 + ,20.9236111111111 + ,4.95138888888889 + ,-18.6736111111111 + ,2.44444444444445 + ,1.71805555555555 + ,-3.05694444444444 + ,6.63472222222222 + ,-8.53194444444444 + ,-14.2430555555556 + ,-0.895833333333336 + ,-3.15277777777778 + ,14.2152777777778 + ,10.1319444444444 + ,-13.5486111111111 + ,0.534722222222225 + ,2.11111111111111) > #'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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/19js71352756425.tab") > > > > proc.time() user system elapsed 0.297 0.079 0.358