search for: klarb2

Displaying 1 result from an estimated 1 matches for "klarb2".

Did you mean: klarb1
2005 Oct 29
1
how to get colnames of a dataframe within a function called by 'apply'
...: <---snip---> nv <- function(xno.na) { par.or <- par(mfrow=c(3,3)) qqnorm(xno.na, main="HERE SHOULD BE THE NAME OF THE COLUMN") qqline(xno.na, col="red") par(par.or) print(str(xno.na)) } > temp # just a part of the whole data.frame klarb1 klarb2 abarb laut skla1 skla2 a NA 13.068182 7.5 4 0.5 0.5 b NA 6.818182 9.0 6 NA 0.5 c 15.11628 6.818182 10.0 4 1.0 1.5 d NA 18.181818 19.0 2 1.0 0.5 > apply(temp,2,nv) </---snip---> Thanks a lot! best wishes, leo