R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" 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(5.5292E+14 + ,5.07241E+14 + ,5.30077E+14 + ,3.98633E+14 + ,-2.04677E+14 + ,0.624053704919523 + ,-0.619104512510785 + ,2.82277E+13 + ,1.6736E+14 + ,-1.83965E+14 + ,1.14616E+14 + ,1.14651E+14 + ,-0.419405895236472 + ,-7.28764E+13 + ,1.36567E+14 + ,-1.31183E+14 + ,-2.48499E+14 + ,0.470381497233852 + ,-0.462376594402993 + ,0.782510657259257 + ,0.77836452757882 + ,-5.08899E+14 + ,2.26697E+13 + ,2.90181E+14 + ,2.06381E+14 + ,3.58694E+14 + ,-0.536524794608393 + ,-3.53134E+14 + ,0.125861940051202 + ,1.00882E+14 + ,-0.958280757689514 + ,-0.38264071245336 + ,-0.44883827434813 + ,-1.1842E+14 + ,5.89439E+14 + ,4.93709E+14 + ,-1.78119E+14 + ,1.47445E+14 + ,-0.537282656194248 + ,1.76181E+14 + ,2.38786E+14 + ,1.27736E+14 + ,-1.5951E+14 + ,-1.86485E+14 + ,0.804396154766398 + ,-0.967115236171931 + ,1.75586E+13 + ,3.67244E+14 + ,-4.42259E+14 + ,1.28797E+14 + ,-1.56827E+14 + ,-3.37747E+14 + ,-2.35248E+14 + ,1.48641E+14 + ,2.01492E+14 + ,-0.911517134161775 + ,-3.94468E+14 + ,-3.83843E+14 + ,2.33459E+14 + ,4.32613E+14 + ,0.782902161098753 + ,-0.0334534330681684 + ,-1.80056E+14 + ,-1.06577E+14 + ,-1.21205E+14 + ,-2.00274E+14 + ,-2.63955E+14 + ,0.0222291134779818 + ,-1.4242E+14 + ,-1.41001E+13 + ,2.09819E+14 + ,6.10257E+14 + ,2.60652E+14 + ,1.46911E+14 + ,-5.85787E+14 + ,-3.56015E+13 + ,-0.7892852108143 + ,-1.07649E+14 + ,0.289648432910911 + ,-2.57858E+14 + ,-1.75009E+14 + ,-1.52423E+14 + ,2.47475E+14 + ,0.938517038974855 + ,2.04299E+13 + ,2.92673E+14 + ,3.04308E+14 + ,5.91278E+14 + ,2.94844E+14 + ,8.61809E+14 + ,4.07945E+14 + ,0.20047240968194 + ,5.85063E+14 + ,-0.283236295900996 + ,0.705729907029424 + ,-3.38527E+14 + ,0.364431382467596 + ,-6.25415E+14 + ,-7.41018E+14 + ,-9.92876E+14 + ,-1.05242E+14 + ,-5.75721E+14 + ,-6.87196E+13 + ,-8.53353E+14 + ,-9.85364E+13 + ,-1.69356E+13 + ,-0.104113230860703 + ,0.0758505477448361 + ,-6.81413E+14 + ,-4.8442E+14 + ,-6.34058E+14 + ,-6.9555E+14 + ,-4.233E+14 + ,-6.99203E+13 + ,-1.18164E+14 + ,-1.30768E+14 + ,-3.24643E+14 + ,2.34959E+14 + ,5.28269E+14 + ,5.01533E+14 + ,0.508379382637432 + ,3.72849E+14 + ,5.01905E+14 + ,3.76364E+13 + ,1.61787E+14 + ,9.67476E+14 + ,5.32447E+14 + ,4.81149E+14 + ,3.98898E+14 + ,6.13322E+14 + ,2.95646E+14 + ,0.769616782736188 + ,-2.69068E+14 + ,-3.6725E+14 + ,5.33607E+14 + ,2.51911E+13 + ,0.13740076942665 + ,4.16573E+14 + ,1.16701E+14 + ,1.339E+14 + ,-2.88769E+13 + ,-1.19636E+14 + ,0.220729435925833) > #'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/1n7kx1351899902.tab") > > > > proc.time() user system elapsed 0.654 0.182 0.799