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