R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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.71964596035101 + ,0.822066609489707 + ,0.822016161855761 + ,-8.41530149006476 + ,0.711435164757617 + ,1.17077830541507 + ,-9.24556126518852 + ,4.97730524492738 + ,4.60681025461727 + ,8.42686169946119 + ,0.363623350308526 + ,-7.06790088738915 + ,-9.21954727728087 + ,0.174927739932381 + ,2.36549008666272 + ,-2.63845786442242 + ,0.982928660571597 + ,-3.1093251517507 + ,-2.2845220637916 + ,-5.73314117656315 + ,-1.23167914756939 + ,-8.35008697747145 + ,0.492030545097708 + ,0.288039044622023 + ,-2.99932113302192 + ,-0.892716876114649 + ,-3.52650178290119 + ,2.50356903312068 + ,5.61078989876994 + ,-3.51957172701002 + ,-7.21361054896994 + ,-3.18912738475798 + ,-3.7642581695078 + ,-16.376929468198 + ,-3.62096719881165 + ,-8.6493357450096 + ,5.45107206583389 + ,-7.21703431180061 + ,-8.59677405961297 + ,1.45282887254659 + ,-9.26758202403959 + ,-12.9573314586746 + ,6.08481763785683 + ,3.18291407229485 + ,-18.3568156264994 + ,6.98732725605025 + ,5.27477702341482 + ,5.57051682253234 + ,-0.112455408855988 + ,-2.42579336617251 + ,-2.47488640667639 + ,3.18198737382309 + ,-9.16279355045819 + ,12.2775996212557 + ,-3.44586162501187 + ,-5.75040170536047 + ,-1.9356778395869) > #'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/165iw1324661260.tab") > > > > proc.time() user system elapsed 0.227 0.036 0.256