[R] apply and factor

Rachel Cunliffe rachel at stat.auckland.ac.nz
Fri Aug 10 02:58:57 CEST 2001


Hi again

Why does this occur?

> test <- apply(data,2,factor)  # where data is a data.frame 
> is.factor(test[,1])
[1] FALSE

Many thanks,

Rachel
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list