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(369.07,369.32,370.38,371.63,371.32,371.51,369.69,368.18,366.87,366.94,368.27,369.62,370.47,371.44,372.39,373.32,373.77,373.13,371.51,369.59,368.12,368.38,369.64,371.11,372.38,373.08,373.87,374.93,375.58,375.44,373.91,371.77,370.72,370.5,372.19,373.71,374.92,375.63,376.51,377.75,378.54,378.21,376.65,374.28,373.12,373.1,374.67,375.97,377.03,377.87,378.88,380.42,380.62,379.66,377.48,376.07,374.1,374.47,376.15,377.51,378.43,379.7,380.91,382.2,382.45,382.14,380.6,378.6,376.72,376.98,378.29,380.07,381.36,382.19,382.65,384.65,384.94,384.01,382.15,380.33,378.81,379.06,380.17,381.85,382.88,383.77,384.42,386.36,386.53,386.01,384.45,381.96,380.81,381.09,382.37,383.84,385.42,385.72,385.96,387.18,388.5,387.88,386.38,384.15,383.07,382.98,384.11,385.54,386.92,387.41,388.77,389.46,390.18,389.43,387.74,385.91,384.77,384.38,385.99,387.26,388.45,389.7,391.08,392.46,392.96,392.03,390.13,388.15,386.8,387.18,388.59) > #'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/1gsto1355690169.tab") > > > > proc.time() user system elapsed 0.325 0.063 0.362