R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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. > x <- array(list('SMK',4,'SMK',5,'SMK',3,'SMK',4,'SMK',5,'SMK',3,'SMK',7,'SMK',5,'SMK',6,'SMK',3,'SMK',2,'SMK',4,'SMK',5,'SMK',2,'SMK',3,'SMK',6,'SMK',4,'SMK',4,'SMK',6,'SMK',2),dim=c(2,20),dimnames=list(c('Status','Rating'),1:20)) > y <- array(NA,dim=c(2,20),dimnames=list(c('Status','Rating'),1:20)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } There were 20 warnings (use warnings() to see them) > par5 = 'Rating' > par4 = 'Status' > par3 = '0' > par2 = 'TRUE' > par1 = 'grey' > ylab = 'Rating' > xlab = 'Status' > main = 'Curry data' > par5 <- 'Rating' > par4 <- 'Status' > par3 <- '0' > par2 <- 'TRUE' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: aston2 > #To cite this work: Ian E. Holliday, 2012, Histogram and QQplot (v1.0.6) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_Reddy-Moores%20Data%20Boxplot.wasp/ > #Source of accompanying publication: > # > postscript(file="/var/wessaorg/rcomp/tmp/1txj71384735541.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > 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 Warning message: NAs introduced by coercion > par5 <- as.numeric(par5) # response column Warning message: NAs introduced by coercion > x <- t(x) > x1<-as.numeric(x[,par5]) # response Error: (list) object cannot be coerced to type 'double' Execution halted