[R] select levels of factor variables

zoe.cryocla zoe.cryocla at gmail.com
Wed May 25 10:46:03 CEST 2011


Hi again,
I've got another question...


I often use the symbol == to select some levels of factor variables like :
data[data$var=="blabla", [

But this time, I'd like to select all the levels of my variable wich contain
the letter "B", is that a way to determine this conditions ?

Thanks a lot !

Zoé


--
View this message in context: http://r.789695.n4.nabble.com/select-levels-of-factor-variables-tp3549189p3549189.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list