Dear all,

I have a data.frame with a factor collumn with about 10 levels.
After extract a subset of this data.frame, by selecting 2 of my 10 levels, the 
new data.frame continue with original number of levels. How can I adjust it in 
a manner that when I try levels(my.df) I receive the actualyzed number of 
levels?

By the way, I read my file using reab.table.

I tryed solve it with :  levels(my.df$my.var)<-unique(my.df$my.var) but the 
problem remain.

Many thanks,

miltinho
Brazil



 para armazenamento!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to