Displaying 1 result from an estimated 1 matches for "intnmbrcols".
2012 Aug 10
2
Function definition: where is the error in the "for" loop?
Dear all,
The following function code fails with errors (see below):
RegPlots <- function (data, ContrVar, RespVar){
intNmbrRows<-length(RespVar);intNmbrCols<-lenght(ContrVar)
par(mfrow=c(intNmbrRows,intNmbrCols))
For(i in 1:intNmbrRows){
For (j in 1:intNmbrCols){
RegGraf(data,ContrVar[i],RespVar[j])
}
}
par(mfrow=c(1,1))
#(RegGraf is another function that creates a plot and that runs...