Re: [R] A beginner's question about ggplot

2009-05-01 Thread hadley wickham
On Fri, May 1, 2009 at 12:22 PM, MUHC-Research wrote: > > Dear R-users, > > I would have another question about the ggplot() function in the ggplot2 > package. > > All the examples I've read so far in the documentation make use of a single > neatly formatted data.frame. However, sometimes, one may

[R] A beginner's question about ggplot

2009-05-01 Thread MUHC-Research
Dear R-users, I would have another question about the ggplot() function in the ggplot2 package. All the examples I've read so far in the documentation make use of a single neatly formatted data.frame. However, sometimes, one may be interested in plotting on the same grid information or objects d

Re: [R] A beginner's question

2009-03-27 Thread Paul Hiemstra
minben schreef: 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@r-project.org mailing

Re: [R] A beginner's question

2009-03-27 Thread Florin Maican
You can do like this: 1. mydata[mydata$skill==1,] 2. mydata[mydata[,"skill"]==1,] /Forin On Thu, 26 Mar 2009 23:40:32 -0700 (PDT) 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 obser

Re: [R] A beginner's question

2009-03-27 Thread K. Elo
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

Re: [R] A beginner's question

2009-03-27 Thread Coen van Hasselt
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 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 "sk

[R] A beginner's question

2009-03-27 Thread minben
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@r-project.org mailing list https://stat