Nope, but thanks
On Thu, Jun 13, 2013 at 1:11 PM, Albin Blaschka < albin.blasc...@standortsanalyse.net> wrote: > > > Am 13.06.2013 14:02, schrieb Shane Carey: > > I have a dataframe consisting of factors in one column. Im trying to >> remove >> certain levels using the following code: >> toBeRemoved1<-which(DATA$**UnitName_1=="lake") >> DATA<-DATA[-toBeRemoved1,] >> >> However it will not remove the level "lake" >> > > Hello! > > Is this a part of the R Inferno? > See "The R Inferno" from Patrick Burns, specially Chapter 8.2.4 "dropping > factor levels ", page 83 > > http://www.burns-stat.com/**pages/Tutor/R_inferno.pdf<http://www.burns-stat.com/pages/Tutor/R_inferno.pdf> > > HTH, > Albin > > > -- > | Albin Blaschka, Mag.rer.nat. > | Etrichstrasse 26, A-5020 Salzburg > | * www.albinblaschka.info * www.thinkanimal.info * > | - It's hard to live in the mountains, hard but not hopeless! > > ______________________________**________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Shane [[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.