Message-ID: <alpine.DEB.2.00.1101192327520.15959@springer.Berkeley.EDU>
Date: 2011-01-20T07:29:36Z
From: Phil Spector
Subject: Using subset to filter data table
In-Reply-To: <AANLkTi=Sm2MfZXmk5xrGpR1LZjmwdmdYHMeZeiiquGPQ@mail.gmail.com>
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
spector at 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.srinivas at gmail.com>wrote:
>
>> tcc.new2 <- droplevels(tcc.new)
>>
>>
>
> [[alternative HTML version deleted]]
>
>