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(276.4441774 + ,207.7011496 + ,144.3354026 + ,125.9190078 + ,130.5670718 + ,120.1383288 + ,110.2099777 + ,-341.7742969 + ,-270.469224 + ,518.8868268 + ,329.587623 + ,98.13544839 + ,426.6251477 + ,324.4117534 + ,215.33532 + ,0.756161165 + ,627.8502654 + ,-404.7216883 + ,-626.638607 + ,-668.5319465 + ,-571.8332616 + ,-14.63797264 + ,-339.2514894 + ,-180.3645972 + ,-360.3866191 + ,-495.3904446 + ,-367.5466871 + ,367.9627732 + ,564.7719375 + ,113.802679 + ,-299.3231298 + ,-418.3302645 + ,116.3111988 + ,-40.41111341 + ,-404.1631482 + ,74.2420254 + ,-757.2270447 + ,-462.4801997 + ,671.2632913 + ,-338.0458719 + ,-723.5781604 + ,792.5513752 + ,-180.5675053 + ,-199.1205695 + ,100.6737253 + ,-141.9495173 + ,-286.3182022 + ,152.6231938 + ,-76.01662773 + ,481.146014 + ,695.7717103 + ,-504.5723927 + ,-293.9256207 + ,-241.4214967 + ,-150.0726087 + ,69.74122819 + ,133.2375361 + ,463.1937163 + ,317.5013322 + ,124.2752153 + ,-37.93663086 + ,-374.6200557 + ,726.0925008 + ,-239.5684331 + ,107.5978241 + ,220.7898672 + ,613.5358024 + ,-247.7471698 + ,697.4276509 + ,272.5849057 + ,239.8271771 + ,752.5700905 + ,108.1762025 + ,232.1945036 + ,114.376927 + ,154.9812684 + ,-893.4428771 + ,-145.5631969 + ,-441.1213524 + ,-962.5173184 + ,605.2519472 + ,-579.7896401 + ,311.2864876 + ,299.9561391) > #'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/18etv1324655108.tab") > > > > proc.time() user system elapsed 0.230 0.031 0.253