On 21 Jan 2014, at 15:58 , Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote:

> You are mis-using factors. Would you pretend that women do not exist just 
> because your sample happens to include only men?
> 
> If you really need to ignore those other levels, convert your factor to 
> character and summarize those values.

Actually, just factor(fff) will do. Or droplevels(fff).


-- 
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
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