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. > x <- c('Firefox3.0.17' + ,'MSIE8' + ,'MSIE8' + ,'MSIE8' + ,'MSIE7' + ,'Firefox3.0.4' + ,'Firefox0' + ,'MSIE8' + ,'Chrome3.0.195.38' + ,'Firefox3.0.17' + ,'Firefox0' + ,'MSIE7' + ,'MSIE7' + ,'MSIE8' + ,'MSIE8' + ,'MSIE7' + ,'Firefox0' + ,'MSIE8' + ,'Firefox0' + ,'Firefox0' + ,'MSIE7' + ,'Firefox0' + ,'Firefox0' + ,'MSIE8' + ,'MSIE7' + ,'Firefox0' + ,'Firefox0' + ,'Safari4.0.4' + ,'MSIE8' + ,'Firefox3.0.17' + ,'MSIE8' + ,'MSIE8' + ,'MSIE7' + ,'Firefox0' + ,'MSIE8' + ,'MSIE8' + ,'Firefox0' + ,'MSIE8' + ,'MSIE7' + ,'MSIE7' + ,'Firefox0' + ,'MSIE8' + ,'MSIE8' + ,'Firefox0' + ,'Opera9.8' + ,'Firefox3.0.16' + ,'MSIE7' + ,'MSIE8' + ,'MSIE7' + ,'Firefox0' + ,'Firefox0' + ,'Safari4.0.4' + ,'Firefox0' + ,'Firefox0' + ,'MSIE8' + ,'MSIE6' + ,'MSIE7' + ,'Firefox3.0.16' + ,'Safari4.0.3' + ,'MSIE7' + ,'MSIE7' + ,'MSIE6' + ,'MSIE7' + ,'Firefox3.0.17' + ,'MSIE7' + ,'Chrome3.0.195.38' + ,'MSIE7' + ,'Firefox3.0.15' + ,'Safari4.0.2' + ,'Safari4.0.2' + ,'Firefox0' + ,'MSIE7' + ,'MSIE7' + ,'Firefox3.0.17' + ,'MSIE8' + ,'MSIE8' + ,'MSIE8' + ,'MSIE7' + ,'Firefox0' + ,'MSIE7' + ,'MSIE8' + ,'MSIE8' + ,'MSIE8' + ,'Firefox3.0.15' + ,'MSIE7' + ,'Firefox0' + ,'Safari4.0.4' + ,'Firefox0' + ,'MSIE6' + ,'MSIE8' + ,'MSIE7' + ,'MSIE8' + ,'MSIE7' + ,'MSIE8' + ,'MSIE8' + ,'Safari0' + ,'Firefox0' + ,'MSIE8' + ,'Firefox3.0.16' + ,'MSIE8' + ,'MSIE7' + ,'MSIE7' + ,'MSIE8' + ,'MSIE8' + ,'Firefox3.0.12' + ,'MSIE7' + ,'Firefox0' + ,'MSIE6' + ,'MSIE7' + ,'MSIE8' + ,'Firefox3.0.16' + ,'MSIE7' + ,'MSIE7' + ,'MSIE8' + ,'Safari4.0.3' + ,'MSIE7' + ,'Firefox3.0.15' + ,'Firefox0' + ,'MSIE8' + ,'Safari4.0.3' + ,'Safari4.0.2' + ,'Firefox0' + ,'MSIE8' + ,'MSIE8' + ,'MSIE8' + ,'MSIE8' + ,'Chrome3.0.195.38' + ,'MSIE7' + ,'Firefox0' + ,'MSIE8' + ,'MSIE7' + ,'MSIE7' + ,'MSIE8' + ,'Firefox0' + ,'Safari4.0.4' + ,'MSIE7' + ,'MSIE8' + ,'MSIE6' + ,'MSIE7') > par1 = '500' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > if (par1 < 10) par1 = 10 > if (par1 > 5000) par1 = 5000 > library(lattice) > library(boot) Attaching package: 'boot' The following object(s) are masked from 'package:lattice': melanoma > boot.stat <- function(s,i) + { + s.mean <- mean(s[i]) + s.median <- median(s[i]) + s.midrange <- (max(s[i]) + min(s[i])) / 2 + c(s.mean, s.median, s.midrange) + } > (r <- boot(x,boot.stat, R=par1, stype='i')) Error in max(s[i]) + min(s[i]) : non-numeric argument to binary operator Calls: boot -> statistic In addition: Warning message: In mean.default(s[i]) : argument is not numeric or logical: returning NA Execution halted