Skip to content
Prev 79904 / 398502 Next

how to get colnames of a dataframe within a function called by 'apply'

One other comment.  A for loop would seem to be
appropriate here since you are not using the result
of sapply anyways:

par.or <- par(mfrow = c(3,3))

for(n in colnames(temp)) {
  qqnorm(temp[,n], main = n)
  qqline(temp[,n], col = "red")
}

par(par.or)
On 10/28/05, Gabor Grothendieck <ggrothendieck at gmail.com> wrote: