R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(1280,1024,1120,1024,1280,1280,1280,1024,1280,1280,1280,1280,1280,1688,1440,1600,1280,1280,1280,1176,1280,1503,1440,1366,1280,1024,1280,2560,1280,1024,1280,1280,1440,1280,1440,1024,1440,1143,1280,1440,1280,1366,1024,1408,1366,1176,1920,1257,1280,1280,1440,1680,1440,1024,1140,1280,1280,1280,1280,1280,1440,1280,1152,1280,1280,1440,1280,1280,1440,1280,1280,1440,1280,1280,1600,1024,1366,1280,1280,1440,1366,1280,1024,1280,1440,1280,1280,1408,1280,1600,1600,1680,1440,1440,917,1280,1760,1280,1280,1280,1024,1366,1440,1280,1280,1920,1024,1024,1600,1117,1440,983,1024,1024,1280,1440,1280,1280,1280,1440,1280,1024,1024,1152,1280,1024,1366,1680,1680,1280,1366,1024,1440,1024,1280,1280,1280,1024,1280) > par3 = '' > par2 = '' > par1 = '' > #'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: > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > stem(x,par1,par2,par3) Error in if (scale <= 0) stop("'scale' must be positive") : missing value where TRUE/FALSE needed Calls: stem Execution halted