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(221.114422853728 + ,-538.308881293121 + ,7737.06071284906 + ,1937.35298327409 + ,3.3416323640987 + ,5094.27126551264 + ,4139.5962415987 + ,53754.5807036735 + ,-24955.117438707 + ,-7277.45376137881 + ,16096.6963779443 + ,6048.17419872984 + ,-17573.9045200179 + ,-4356.52061010803 + ,-11531.0027015825 + ,5421.91009710594 + ,21384.0313858023 + ,-40246.7377728038 + ,20054.0546382438 + ,-33216.6945003095 + ,26493.722401323 + ,38842.6286130917 + ,23781.6303349412 + ,22996.6548677136 + ,30652.6472591777 + ,18776.243910306 + ,6552.15426462882 + ,-4697.16825731282 + ,-5604.45507440801 + ,-23416.3900091153 + ,-21407.1575712903 + ,-30483.4615292691 + ,6330.4647839063 + ,10143.227004815 + ,-500.081486848103 + ,-6990.71042611177 + ,-2025.75273848114 + ,-11356.2998902176 + ,12938.8762693161 + ,14022.3081839885 + ,-37986.0587384995 + ,13264.3328184866 + ,-3084.88259123966 + ,-23842.4653510761 + ,32125.1962166807 + ,13478.256984451 + ,1838.17224723342 + ,2340.96100448108 + ,40.154400905124 + ,6568.47239037984 + ,-10323.4115619447 + ,-18029.7240692072 + ,-6745.95280524122 + ,-11315.0864881102 + ,-11366.6204686721 + ,-11408.6231856564 + ,10262.6357383565 + ,-4353.44744077624 + ,-4285.53909794557 + ,-7649.75252442461 + ,-7651.35050747628) > #'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/1v6951354280454.tab") > > > > proc.time() user system elapsed 0.324 0.084 0.583