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(1488.30795940171 + ,1.31100579578197 + ,-62.8292585433846 + ,-53.0977231716133 + ,-75.2294942833287 + ,-103.81191347499 + ,791.980125618677 + ,-1124.36607942282 + ,-259.066495659485 + ,604.158207906617 + ,-1152.70947708833 + ,390.753448644904 + ,-443.796182784045 + ,2029.62103728335 + ,-687.135302867631 + ,348.865170015495 + ,178.053253358139 + ,-211.478194570387 + ,-394.432572436035 + ,67.0348958694485 + ,-83.5372733625627 + ,63.6437034770497 + ,935.069352004019 + ,567.223793165984 + ,-1424.38052268992 + ,-216.546135743891 + ,675.850160250855 + ,2556.98108285433 + ,3202.45956954293 + ,1613.71426981662 + ,-2364.49123975028 + ,-6.08592953761399 + ,324.193263659898 + ,-849.37305903736 + ,385.683051670574 + ,1497.23412269545 + ,-2769.19851531387 + ,-1366.7061060863 + ,405.081764487117 + ,1554.36530521234 + ,1141.51747582862 + ,78.7681944492942 + ,1047.43441174868 + ,4146.11389425296 + ,1287.04807889547 + ,-3152.72898178532 + ,1255.1456267108 + ,-1192.42665311747 + ,-841.542957921505 + ,386.505318468517 + ,-1746.11985101293 + ,905.210620235484 + ,-477.078953252436 + ,1056.01745236111 + ,603.305333901364 + ,427.155912446113 + ,570.39077217078 + ,-1018.0420842099) > #'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/1lbb61355052401.tab") > > > > proc.time() user system elapsed 0.290 0.079 0.348