[R] A beginner's question

Coen van Hasselt coenvanhasselt at gmail.com
Fri Mar 27 08:15:18 CET 2009


Here's an example:

mydata<-data.frame(skill=c(1,2,3,4),x=c(1,1,1,1))
mydata[mydata$skill==1,]


On Fri, Mar 27, 2009 at 16:40, minben <minbenh at gmail.com> 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?
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list