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(0.0589999409995141 + ,-1.41417450501306 + ,-18.3846475755861 + ,4.24266776527226 + ,-9.89940750475467 + ,-1.41416601970523 + ,-4.94968147844429 + ,8.48527118362683 + ,5.65684722004823 + ,2.12135156036077 + ,-12.7278137906086 + ,-1.41417238368611 + ,-5.65678640867546 + ,5.71546709301464 + ,11.430917448217 + ,4.0824915417843 + ,-5.71542749248443 + ,-4.89893277693375 + ,5.30722585896545 + ,-8.98140023237252 + ,-0.816480018948223 + ,-3.67419274460486 + ,2.44950292718234 + ,-7.34841447478369 + ,-12.2473676641251 + ,13.5676795115537 + ,-7.50550178552387 + ,-10.1035605510469 + ,4.61879420118808 + ,-12.9903024874634 + ,3.7527758629083 + ,-14.1450008210891 + ,-2.30938107887528 + ,-11.2582591729112 + ,-4.33008822361948 + ,1.29908651985677e-05 + ,16.454417696876 + ,7.82621147962468 + ,4.02491438422167 + ,-8.72060773063855 + ,-0.894411455568734 + ,-0.223594253653449 + ,-6.93176357788012 + ,-2.01244265593132 + ,-7.1553761680782 + ,0.223617958497356 + ,8.27342503551901 + ,15.2051986751483 + ,2.90688653528183 + ,-12.7801213366766 + ,-3.10373653589491 + ,-7.12034669123719 + ,-3.46888342810694 + ,-8.3983624583384 + ,2.55603701106735 + ,0.182580385499283 + ,10.5892565952768 + ,15.7013138196074 + ,6.75522353446613 + ,5.11206123957597 + ,8.76352852127385) > #'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/16hzk1355065816.tab") > > > > proc.time() user system elapsed 0.351 0.096 0.416