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(867887509505211 + ,-225028069676838 + ,336183570412959 + ,995434468238836 + ,354191730842355 + ,18882406400463 + ,202294310915672 + ,268402416151187 + ,-113346926055862 + ,-45016394227939 + ,35069861367254 + ,585310957290091 + ,-772563771198791 + ,-31473594568955 + ,-523910075132882 + ,328549847569661 + ,101107732845397 + ,-176275960398033 + ,79531884415102 + ,-176414251561376 + ,151290579462589 + ,167731594163443 + ,143237122434691 + ,802519665265577 + ,118735726273623 + ,750358259037494 + ,191983085437346 + ,-363645639276314 + ,-361705787440905 + ,-109567395064155 + ,-100783336097857 + ,-149267403931369 + ,389473510583149 + ,586130600994635 + ,160744602044407 + ,-415630049150659 + ,-159705964777959 + ,-475639548420802 + ,595953577179922 + ,658978405390448 + ,-166489283203891 + ,463123269884632 + ,-159528722863516 + ,-877806523566012 + ,134744172737777 + ,752328122408289 + ,244087558471514 + ,-154061403381955 + ,-376675348767364 + ,271972239951006 + ,-467772890031503 + ,-824728212609495 + ,-351547184801844 + ,-46946870011609 + ,-436415364941684 + ,-549207084991732 + ,549054038222157 + ,-105095840707596 + ,-137068046976985 + ,-423476087628011 + ,-289904687708701) > #'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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/1yop91356065405.tab") > > > > proc.time() user system elapsed 0.466 0.130 0.564