[R] Trying to understand factors

Julio Sergio juliosergio at gmail.com
Fri Mar 30 19:22:24 CEST 2012


Sarah Goslee <sarah.goslee <at> gmail.com> writes:

> 
> Hi Julio,
> 
> You can use a factor to index another object just as you'd use any other index:
> > incomes[statef == "act"]
> [1] 46 43 
> Is there something specific you're trying to accomplish?
> 
> Sarah
> 

Thanks Sarah! I'm just learning R. Thanks again for your answer and for the 
source of information.

--Sergio.



More information about the R-help mailing list