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(-24.19314566 + ,1053.585242 + ,459.2899709 + ,-1020.592947 + ,1578.297456 + ,1151.313745 + ,1052.647943 + ,-453.861754 + ,1136.488243 + ,1560.949376 + ,-1728.447897 + ,-1006.271281 + ,-1125.403795 + ,-1093.390599 + ,-514.2979898 + ,-656.5692242 + ,24.79732372 + ,-574.2936146 + ,-1173.779681 + ,-1450.282218 + ,470.5264272 + ,869.8676416 + ,339.7016601 + ,1313.143229 + ,390.3103882 + ,-1473.398721 + ,-613.7911161 + ,-746.3350147 + ,-495.1295444 + ,-0.721920744 + ,-359.0518742 + ,-1918.713003 + ,312.8703454 + ,1162.971844 + ,461.7065536 + ,1013.114646 + ,-104.759003 + ,-93.65234575 + ,262.5826111 + ,2348.989697 + ,-917.9505859 + ,-18.60300827 + ,-1585.063481 + ,-1295.795431 + ,318.1791196 + ,662.1605193 + ,-510.7353722 + ,-2633.957466 + ,32.63983161 + ,310.0810531 + ,816.1858627 + ,214.1096008 + ,-255.0722244 + ,1903.375896 + ,2752.095725 + ,-2690.23011 + ,2636.870384 + ,-9.494220787 + ,291.4908472 + ,811.7660702 + ,-965.6656217 + ,-767.2234117 + ,-832.1431278 + ,65.03779279 + ,104.7175711 + ,331.0482631 + ,1678.454686 + ,653.434155 + ,1754.353235 + ,2280.857734 + ,2159.96265 + ,493.5338172 + ,-293.0783911 + ,-130.2725201 + ,283.1464855 + ,-364.1893842 + ,-2107.5271 + ,-740.1589281 + ,-1422.890748 + ,-1804.449541 + ,-266.5560317 + ,-1278.66225) > #'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/16jyv1356021643.tab") > > > > proc.time() user system elapsed 0.381 0.077 0.429