R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(1.959961185 + ,2.876293978 + ,-0.788255967 + ,-0.895170087 + ,-4.233509903 + ,3.411323235 + ,3.320270234 + ,-2.051807687 + ,-0.854222426 + ,-0.890406017 + ,0.534784709 + ,-1.78635778 + ,1.170651302 + ,-1.529473531 + ,3.591929663 + ,1.881934928 + ,-0.004981711 + ,-0.329846494 + ,-2.997454749 + ,-2.76907181 + ,-4.516583667 + ,1.608173831 + ,-0.678462529 + ,-5.386404207 + ,2.423431294 + ,0.55124997 + ,1.781717688 + ,-0.685175421 + ,4.265410247 + ,-1.405747811 + ,0.063945219 + ,-2.32699155 + ,-3.540933782 + ,1.314957385 + ,2.224683852 + ,1.59972085 + ,-0.790609805 + ,2.949702172 + ,4.16357536 + ,0.546593426 + ,1.388767885 + ,-4.254352804 + ,3.789079346 + ,1.191860338 + ,1.595328171 + ,-1.561977928 + ,-3.743594547 + ,0.047756036 + ,0.825273769 + ,-2.63421777 + ,1.6156615 + ,0.447498089 + ,-0.703475361 + ,-1.111137275 + ,1.459898827 + ,-3.085232087 + ,-1.212170412 + ,-4.420961058 + ,1.269101665 + ,-2.427346394 + ,1.852890028 + ,0.739661184 + ,3.767841783 + ,0.369163646 + ,-2.530000608 + ,0.553430044 + ,1.85763213 + ,-1.671622394 + ,-0.445591341 + ,4.788852372 + ,-3.86873489 + ,1.295345856 + ,0.228166941 + ,-1.188005436 + ,1.883048431 + ,0.395270046 + ,2.386110471 + ,2.267075228 + ,-3.046540079 + ,-1.64482648 + ,1.125707098 + ,-3.895539497 + ,0.522033489 + ,1.540692466 + ,0.463335931) > #'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/10j5o1324654878.tab") > > > > proc.time() user system elapsed 0.226 0.037 0.270