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(120.3970632 + ,1076.430754 + ,318.1001802 + ,-1338.354761 + ,1388.234363 + ,1043.662261 + ,620.379787 + ,482.9513921 + ,-445.5270488 + ,941.8831347 + ,-1667.779296 + ,-812.5462826 + ,-421.3174151 + ,-594.0074895 + ,-338.4944223 + ,-584.5044407 + ,769.8966017 + ,-796.7116374 + ,-1430.636171 + ,-103.2506613 + ,-347.9253437 + ,204.8179118 + ,86.40994451 + ,944.9968342 + ,621.8567681 + ,-1242.411582 + ,-197.5579913 + ,-645.5607633 + ,-68.59293569 + ,-129.773436 + ,-216.1285904 + ,-438.2206017 + ,-469.5361568 + ,597.1857407 + ,455.5314211 + ,1012.571504 + ,159.897668 + ,411.7957375 + ,161.7518098 + ,2287.781002 + ,-645.5827939 + ,-468.3278418 + ,-1900.510948 + ,-71.03961197 + ,-986.5617753 + ,-140.4492683 + ,-513.9017382 + ,-2328.173717 + ,73.73909449 + ,223.6882545 + ,502.9952922 + ,99.68694327 + ,-253.462341 + ,1152.013988 + ,2551.455937 + ,-1552.713469 + ,1662.156251 + ,-1470.1195 + ,-469.8657303 + ,698.687884 + ,-705.4463725 + ,-609.7701182 + ,-985.6924652 + ,93.40319476 + ,528.3670081 + ,259.5673079 + ,1748.073961 + ,2118.835565 + ,963.9818278 + ,1578.321492 + ,2109.605398 + ,484.4637772 + ,150.8731939 + ,734.2744435 + ,538.8975967 + ,87.54882492 + ,-1718.859903 + ,-1060.430641 + ,-1372.633975 + ,-436.5626125 + ,-376.5877544 + ,-1711.639511) > #'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/1shr11356026514.tab") > > > > proc.time() user system elapsed 0.335 0.097 0.403