Skip to content
Prev 5002 / 63421 Next

factors in data.frames (PR#835)

What is, pray?
[1] "factor"
[1] "data.frame"

df[ , 1, drop=FALSE] is a data frame, so not a factor.
df[ , 1] is a factor.