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(9.25191650214777 + ,22.2914871230951 + ,-37.1571787649763 + ,34.224161696956 + ,-175.791407723369 + ,104.976083788091 + ,-61.2440566193924 + ,-396.729670519991 + ,-396.44439811595 + ,-260.009316250619 + ,127.969010838924 + ,-36.029843990865 + ,204.138369304772 + ,44.2385868220351 + ,-159.706287586558 + ,203.135138014012 + ,121.756524240195 + ,-16.2019122127222 + ,-243.900810016438 + ,391.694842810854 + ,-164.230167509228 + ,293.821184035543 + ,150.197655607195 + ,-191.027489037513 + ,251.842321753037 + ,-153.374881204494 + ,8.18402596025766 + ,276.1970369319 + ,7.49356404167146 + ,290.310133584017 + ,154.709015298645 + ,-344.563215952582 + ,-268.812624669854 + ,308.788007352866 + ,53.4487117440643 + ,309.745158451437 + ,86.3072721974973 + ,-34.8646306292142 + ,196.561770310134 + ,226.513512286837 + ,-188.002590164262 + ,-58.5622808860067 + ,209.148059687373 + ,145.969099713114 + ,129.401752384417 + ,-33.0299340425404 + ,-386.049808213019 + ,144.248501280284 + ,117.138964770494 + ,129.897118044286 + ,-152.218688906803 + ,-55.0236881931042 + ,144.022136076712 + ,-16.856654827111 + ,144.68580457337 + ,-160.202973634943 + ,329.620650920572 + ,138.317376113197 + ,9.00038368421579 + ,50.5918463806914 + ,313.875297519637 + ,236.907637607489 + ,110.051329051183 + ,-383.848947462751) > #'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/1t60c1356112259.tab") > > > > proc.time() user system elapsed 0.355 0.109 0.440