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(1.777683473,72.08314968,-4.099320159,-3.570655062,-2.606814177,-18.0391647,-0.538026421,5.449556439,-3.197518567,49.08996515,-9.137134919,-11.33483298,-0.040935446,-4.571566893,-7.171887808,-55.46029176,-4.716874256,-19.5773573,-5.041700433,6.201391698,-7.542068941,38.04425431,23.13406565,-5.547679161,-8.047715945,4.132066907,-1.409565302,-1.158422731,-3.442361119,0.15582611,-8.14045365,-1.143625657,50.05239401,-9.88791594,-6.024611867,27.56449169,18.67731749,26.64627585,-6.476967928,-33.47873408,2.132380605,-12.27887664,-8.885890374,-11.0242205,-10.8968773,-2.251545185,24.36475513,24.77152684,-3.792829591,-5.9782952,7.212894609,21.08337409,4.805660306,15.54091562,-9.105558882,-6.903254852,-16.96915011,-86.56967844,-4.014546706,-5.762414619,-6.14531239,-6.646671042,-12.4859174,-6.196690028,5.916894331,5.085914591,2.183534798,-8.138805958,-7.08579828,-0.292831196,-2.771485067,-25.1290988,-3.550910407,46.98023367,-26.91516854,-20.34029993,-6.646900295,20.1003812,54.99632667) > #'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/124b01354195235.tab") > > > > proc.time() user system elapsed 0.332 0.089 0.433