Skip to content
Prev 163845 / 398506 Next

levels update

On Fri, 5 Dec 2008, jim holtman wrote:

            
I find

my.sub$X1 <- my.sub$X1[drop=TRUE]

a lot more self-explanatory.  See ?"[.factor".  However, if you find 
yourself wanting to do this, ask why you have a factor (rather than a 
character vector) in the first place.