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(112285 + ,84786 + ,83123 + ,101193 + ,38361 + ,68504 + ,119182 + ,22807 + ,17140 + ,116174 + ,57635 + ,66198 + ,71701 + ,57793 + ,80444 + ,53855 + ,97668 + ,133824 + ,101481 + ,99645 + ,114789 + ,99052 + ,67654 + ,65553 + ,97500 + ,69112 + ,82753 + ,85323 + ,72654 + ,30727 + ,77873 + ,117478 + ,74007 + ,90183 + ,61542 + ,101494 + ,27570 + ,55813 + ,79215 + ,1423 + ,55461 + ,31081 + ,22996 + ,83122 + ,70106 + ,60578 + ,39992 + ,79892 + ,49810 + ,71570 + ,100708 + ,33032 + ,82875 + ,139077 + ,71595 + ,72260 + ,5950 + ,115762 + ,32551 + ,31701 + ,80670 + ,143558 + ,117105 + ,23789 + ,120733 + ,105195 + ,73107 + ,132068 + ,149193 + ,46821 + ,87011 + ,95260 + ,55183 + ,106671 + ,73511 + ,92945 + ,78664 + ,70054 + ,22618 + ,74011 + ,83737 + ,69094 + ,93133 + ,95536 + ,225920 + ,62133 + ,61370 + ,43836 + ,106117 + ,38692 + ,84651 + ,56622 + ,15986 + ,95364 + ,26706 + ,89691 + ,67267 + ,126846 + ,41140 + ,102860 + ,51715 + ,55801 + ,111813 + ,120293 + ,138599 + ,161647 + ,115929 + ,24266 + ,162901 + ,109825 + ,129838 + ,37510 + ,43750 + ,40652 + ,87771 + ,85872 + ,89275 + ,44418 + ,192565 + ,35232 + ,40909 + ,13294 + ,32387 + ,140867 + ,120662 + ,21233 + ,44332 + ,61056 + ,101338 + ,1168 + ,13497 + ,65567 + ,25162 + ,32334 + ,40735 + ,91413 + ,855 + ,97068 + ,44339 + ,14116 + ,10288 + ,65622 + ,16563 + ,76643 + ,110681 + ,29011 + ,92696 + ,94785 + ,8773 + ,83209 + ,93815 + ,86687 + ,34553 + ,105547 + ,103487 + ,213688 + ,71220 + ,23517 + ,56926 + ,91721 + ,115168 + ,111194 + ,51009 + ,135777 + ,51513 + ,74163 + ,51633 + ,75345 + ,33416 + ,83305 + ,98952 + ,102372 + ,37238 + ,103772 + ,123969 + ,27142 + ,135400 + ,21399 + ,130115 + ,24874 + ,34988 + ,45549 + ,6023 + ,64466 + ,54990 + ,1644 + ,6179 + ,3926 + ,32755 + ,34777 + ,73224 + ,27114 + ,20760 + ,37636 + ,65461 + ,30080 + ,24094 + ,69008 + ,54968 + ,46090 + ,27507 + ,10672 + ,34029 + ,46300 + ,24760 + ,18779 + ,21280 + ,40662 + ,28987 + ,22827 + ,18513 + ,30594 + ,24006 + ,27913 + ,42744 + ,12934 + ,22574 + ,41385 + ,18653 + ,18472 + ,30976 + ,63339 + ,25568 + ,33747 + ,4154 + ,19474 + ,35130 + ,39067 + ,13310 + ,65892 + ,4143 + ,28579 + ,51776 + ,21152 + ,38084 + ,27717 + ,32928 + ,11342 + ,19499 + ,16380 + ,36874 + ,48259 + ,16734 + ,28207 + ,30143 + ,41369 + ,45833 + ,29156 + ,35944 + ,36278 + ,45588 + ,45097 + ,3895 + ,28394 + ,18632 + ,2325 + ,25139 + ,27975 + ,14483 + ,13127 + ,5839 + ,24069 + ,3738 + ,18625 + ,36341 + ,24548 + ,21792 + ,26263 + ,23686 + ,49303 + ,25659 + ,28904 + ,2781 + ,29236 + ,19546 + ,22818 + ,32689 + ,5752 + ,22197 + ,20055 + ,25272 + ,82206 + ,32073 + ,5444 + ,20154 + ,36944 + ,8019 + ,30884 + ,19540) > #'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/1w7kb1323967944.tab") > > > > proc.time() user system elapsed 0.266 0.053 0.335