Ben -
droplevels was introduced in R version 2.12.0. Since you are running version 2.10.1, it won't be
available.  You might want to upgrade to a more
recent version.

                                        - Phil Spector
                                         Statistical Computing Facility
                                         Department of Statistics
                                         UC Berkeley
                                         spec...@stat.berkeley.edu


On Thu, 20 Jan 2011, Ben Harrison wrote:

Thank you Santosh.

I am so new to R that I don't even have droplevels:
1> tcc2 = droplevels(tcc)
Error: could not find function "droplevels"

I looked up ?droplevels:
1> ?droplevels
No documentation for 'droplevels' in specified packages and libraries:
you could try '??droplevels'
1> ??droplevels
Help files with alias or concept or title matching ?droplevels? using
fuzzy matching:


gdata::drop.levels      Drop unused factor levels


Type '?PKG::FOO' to inspect entry 'PKG::FOO TITLE'.


However, droplevels is in the base package apparently, yet I haven't got it.
Can anyone explain this to me?

1> R.version
              _
platform       i486-pc-linux-gnu
arch           i486
os             linux-gnu
system         i486, linux-gnu
status
major          2
minor          10.1
year           2009
month          12
day            14
svn rev        50720
language       R
version.string R version 2.10.1 (2009-12-14)

Ben.




On 19 January 2011 19:27, Santosh Srinivas <santosh.srini...@gmail.com>wrote:

tcc.new2 <- droplevels(tcc.new)



        [[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