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(55.434941922923 + ,427.460066518376 + ,69.2439818579297 + ,34.4621877954595 + ,42.9774343254091 + ,-258.949400840241 + ,150.896586765319 + ,239.053363561638 + ,-18.1258073202621 + ,-16.2548979449833 + ,-123.278230703851 + ,-139.965864722557 + ,7.86901052611571 + ,19.5869429492921 + ,75.1305339012494 + ,130.460555889612 + ,-6.64206747284237 + ,46.9088289271705 + ,-118.487834866605 + ,-7.81365191363297 + ,112.475604589001 + ,168.140074957668 + ,77.048587297491 + ,94.2123873689459 + ,49.3404661280138 + ,-337.66740271424 + ,178.339245216582 + ,-58.3412842700989 + ,-411.401168715377 + ,-169.101964678967 + ,119.512461422111 + ,8.92906990014206 + ,-382.360175524704 + ,-94.2603617218903 + ,-69.5718913606598 + ,-110.621963629968 + ,160.777966970933 + ,-72.6349832829493 + ,112.273378262359 + ,12.9669632796963 + ,1.97831135039256 + ,49.904195014236 + ,-16.8951778688214 + ,581.726225151008 + ,-71.7466890245751 + ,378.185187126538 + ,-41.7510351818667 + ,-28.2287016657079 + ,-42.3019932535012 + ,25.594335666718 + ,-62.411607065844 + ,-44.2262334652879 + ,-259.980227031239 + ,-92.6200196628132 + ,44.5040409591278 + ,37.7889067447467 + ,-212.581553081901 + ,52.72727301925 + ,-147.182467394343 + ,-140.673591619454 + ,-35.017063263511 + ,-25.5353788926667 + ,-16.4336502347937 + ,-5.66185505679022 + ,-21.2586847764676 + ,94.075764857958) > #'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/1ifar1355566360.tab") > > > > proc.time() user system elapsed 0.307 0.086 0.376