factor labels in model.frame
Hello, model.frame changes the factor labels when na.action = na.omit.
f <- gl(3, 2, 6, paste('m', 1:3, sep = ''))
r <- c(NA, NA, 3:6)
mf <- model.frame(~ r + f, na.action = na.omit)
mf
r f 3 3 m1 4 4 m1 5 5 m2 6 6 m2 But it seems like it should be this
mf
r f 3 3 m2 4 4 m2 5 5 m3 6 6 m3 intead. How do I get the second mf? Thanks a lot, Dennis R 1.4.1 Windows 98 __________________________________________________ Yahoo! Tax Center - online filing with TurboTax -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._