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. > x <- array(list(84,82,82,85,83,82,85,83,83,85,83,83,86,84,83,86,84,83,86,84,83,86,84,83,86,84,84,86,84,84,86,84,84,87,84,84,87,85,84,87,86,85,87,86,86,87,87,86,87,87,86,88,87,86,88,87,87,88,88,88,88,88,88,88,88,88,88,89,89,88,89,89,88,89,89,88,89,89,88,89,89,89,89,89,89,89,90,90,90,90,90,90,90,90,90,90,91,90,90,91,90,91,91,90,91,92,90,91,92,91,92,92,91,92,92,91,92,93,92,92,93,92,92,93,94,92,93,94,92,93,94,93,94,94,93,94,94,93,94,94,93,94,95,93,95,95,93,95,96,94,95,96,94,95,96,94,95,96,95,96,96,95,97,97,96,97,97,96,99,98,96,100,98,97,101,98,97,101,100,97,101,100,98,102,101,98),dim=c(3,62),dimnames=list(c('WJ10ARD','WJ10AMA','WJ10AKN'),1:62)) > y <- array(NA,dim=c(3,62),dimnames=list(c('WJ10ARD','WJ10AMA','WJ10AKN'),1:62)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par5 = '2' > par4 = '1' > par3 = '0' > par2 = 'FALSE' > par1 = '3' > ylab = 'Exam Score' > xlab = 'Placement' > main = 'Reddy-Moores Placement Data' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, 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) # colour > par2<- as.logical(par2) # notches > par3<-as.numeric(par3) # percentage trim > if(par3>45){par3<-45;warning('trim limited to 45%')} > if(par3<0){par3<-0;warning('negative trim makes no sense. Trim is zero.')} > par4 <- as.numeric(par4) #factor column > par5 <- as.numeric(par5) # response column > x <- t(x) > x1<-as.numeric(x[,par5]) # response > f1<-as.character(x[,par4]) # factor > x2<-x1[f1=='no'] > f2 <- f1[f1=='no'] > lotrm<-as.integer(length(x2)*par3/100) > hitrm<-as.integer(length(x2)*(100-par3)/100) > srt<-order(x2,f2) > trmx1<-x2[srt[lotrm:hitrm]] > trmf1<-f2[srt[lotrm:hitrm]] > x3<-x1[f1=='yes'] > f3 <- f1[f1=='yes'] > lotrm<-as.integer(length(x3)*par3/100) > hitrm<-as.integer(length(x3)*(100-par3)/100) > srt<-order(x3,f3) > trmx2<-x3[srt[lotrm:hitrm]] > trmf2<-f3[srt[lotrm:hitrm]] > xtrm<-c(trmx1,trmx2) > ftrm<-c(trmf1,trmf2) > xtrm[1:6] [1] NA NA NA NA NA NA > ftrm[1:6] [1] NA NA NA NA NA NA > postscript(file="/var/www/rcomp/tmp/135761319482385.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > r<-boxplot(xtrm~as.factor(ftrm), col=par1, notch=par2, main='Reddy and Moores Placements Data', xlab='Placement Student', ylab='Degree Grade') Error in boxplot.default(split(mf[[response]], mf[-response]), ...) : invalid first argument Calls: boxplot -> boxplot.formula -> boxplot -> boxplot.default In addition: Warning message: In is.na(rows) : is.na() applied to non-(list or vector) of type 'NULL' Execution halted