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. ______________________________________________ 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.