On Tuesday 01 April 2008 09:43:00 am Agustin Lobo wrote: AL> I'm doing: AL> etni <- subset(etni, NAMECOM!="Maniquisito") AL> AL> where etni is a data.frame, NAMECOM a factor and "Maniquisito" labels AL> a row that I want to delete. AL> AL> The problem is that while the row is deleted, the factor level is still AL> there (I can see "Maniquisito" if I do levels(etni$NAMECOM) ).
See http://wiki.r-project.org/rwiki/doku.php?id=tips:data-manip:drop_unused_levels Stefan -- Microeconomics University of Erfurt ______________________________________________ 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.