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(867.88771306744 + ,-2589.39674546118 + ,39314.9242944509 + ,14453.4622141849 + ,486.29450337017 + ,22155.4389721592 + ,25593.2069423751 + ,316675.679799225 + ,-112240.573550224 + ,-67776.6230099865 + ,42113.3312450601 + ,72466.6444183648 + ,-89635.4481509431 + ,-45304.6035927241 + ,-72955.0453587909 + ,27778.7662845435 + ,109945.838867168 + ,-190281.842652476 + ,58572.7872484705 + ,-312133.435237775 + ,194191.436344934 + ,219610.611333987 + ,144895.404377687 + ,59624.459125522 + ,169042.354388903 + ,106033.631872625 + ,49354.0176460777 + ,-56330.0789116722 + ,-100760.24497969 + ,-10063.7778391061 + ,-149797.518979373 + ,-84340.0243213298 + ,-42472.8163348963 + ,-39425.0358647259 + ,-78703.4126089705 + ,-101042.744840936 + ,-83879.2819582617 + ,-92823.6483936284 + ,53018.4057761265 + ,93214.8226750383 + ,-143259.649019981 + ,104137.172392977 + ,56762.2863927986 + ,64080.8236179731 + ,85682.6861487174 + ,35105.7376076042 + ,21445.2467541424 + ,22067.1450226752 + ,-12856.0238900807 + ,43798.0163925142 + ,-91872.180306289 + ,-120060.363136992 + ,76164.1188452531 + ,-103723.488331498 + ,-28463.522217617 + ,-65438.4042213328 + ,17403.2049560243 + ,-13006.6554056241 + ,-1329.70930915323 + ,-21338.2874517854 + ,4837.48897849824) > #'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/16i8l1354656650.tab") > > > > proc.time() user system elapsed 0.256 0.083 0.317