R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(0.5 + ,0.5 + ,0.4 + ,0.5 + ,0.7 + ,0.3 + ,0.4 + ,0.4 + ,0.7 + ,0.6 + ,0.6 + ,0.2 + ,0.4 + ,0.4 + ,0.5 + ,0.3 + ,0.4 + ,0.7 + ,0.5 + ,0.2 + ,0.3 + ,0.6 + ,0.6 + ,0.2 + ,0.7 + ,0.2 + ,1 + ,0.4 + ,0.4 + ,0.2 + ,0.4 + ,0.4 + ,0.7 + ,0.2 + ,0.6 + ,0.3 + ,0.3 + ,0.2 + ,0.5 + ,0.7 + ,0.6 + ,0.4 + ,0.6 + ,0.4 + ,0.3 + ,0.5 + ,0.2 + ,0.3 + ,0.5 + ,0.7 + ,0.4 + ,0.3 + ,0.2 + ,0.5 + ,0.4 + ,0.6 + ,0.4 + ,0.4 + ,0.2 + ,0.9 + ,0.8 + ,0.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0.4 + ,0.6 + ,0.4 + ,0.1 + ,0.3 + ,0.7 + ,0.3 + ,0.5 + ,0.3 + ,0.6 + ,0.9 + ,0.4 + ,0.3 + ,0.9 + ,0.5 + ,0.3 + ,0.6 + ,0.2 + ,0.4 + ,0.5 + ,0.4 + ,0 + ,0.2 + ,0.5 + ,0.3 + ,0 + ,0.5 + ,0.6 + ,0.3 + ,0 + ,0.3 + ,0.5 + ,0.4 + ,0.5 + ,0.7 + ,0.8 + ,0.6 + ,0.4 + ,0.5 + ,0.5 + ,0.3 + ,0.6 + ,0.3 + ,0.6 + ,0.3 + ,0.7 + ,0.7 + ,0.6 + ,0.5 + ,0.5 + ,0.4 + ,0.4 + ,0.7 + ,0.2 + ,0.5 + ,0.4 + ,0.2 + ,0.5 + ,0.4 + ,0.7 + ,0.6 + ,0.4 + ,0.5 + ,0 + ,0.7 + ,0.4 + ,0.5 + ,0.6 + ,0.8) > #'GNU S' R Code compiled by R2WASP v. 1.2.327 () > #Author: root > #To cite this work: Wessa P., (2013), Skewness and Kurtosis Test (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_skewness_kurtosis.wasp/ > #Source of accompanying publication: > # > 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/1ps7c1445257525.tab") > > > > proc.time() user system elapsed 0.183 0.079 0.235