[R] A beginner's question

K. Elo maillists at nic.fi
Fri Mar 27 08:19:51 CET 2009


Hi,

minben wrote:
> I am a new R-language user. I have set up a data frame "mydata",one of
> the colume of which is "skill". Now I want to select the observations
> whose "skill" value is equal to 1,by what command can I get it?

Try this:
mydata1<-mydatasubset(mydata, skill==1)

Maybe You should also read this introduction:
http://cran.r-project.org/doc/manuals/R-intro.pdf


Kind regards,
Kimmo




More information about the R-help mailing list