Let's say that I have got two lists:
temp<-c("con.sin.results","sin.results","exp.results")
Temp<-c("[,1:16]","[,17:32]","[,33:48]","[,49:64]")
Each of the variables in temp contain 1000 observations and 64 variables. What i am trying to do is create a double loop so that I can create boxplots based on sample size (so that each boxplot would have 16 boxes, as per Temp) i.e I would get boxplot(con.sin.results[,1:16]), then boxplot(con.sin.results[,17:32]) etc.
With this goal in mind, I've gotten to the following point:
for (l in temp){
for (L in Temp){
windows()
par(mfrow=c(2,2))
A<-noquote(paste(noquote(l),noquote(L),sep=""))
boxplot(A)
}
}
Unfortunately, this spits out an error at me:
Error in x[floor(d)] + x[ceiling(d)] : non-numeric argument to binary operator
Where am I going wrong? What should I adjust?