Re: [R] Selecting the first row based on a factor

2010-04-02 Thread Sam Albers
Thanks! On Fri, Apr 2, 2010 at 11:35 AM, Erik Iverson wrote: > Hello, > > > Sam Albers wrote: > >> Hello there, >> >> I have a situation where I would like to select the first row of a >> particular factor for a data frame (data example below). So that is, I >> would >> like to select the first

Re: [R] Selecting the first row based on a factor

2010-04-02 Thread Erik Iverson
Hello, Sam Albers wrote: Hello there, I have a situation where I would like to select the first row of a particular factor for a data frame (data example below). So that is, I would like to select the first entry when the factor1 =A and then the first row when factor1=B etc. I have thousands of

[R] Selecting the first row based on a factor

2010-04-02 Thread Sam Albers
Hello there, I have a situation where I would like to select the first row of a particular factor for a data frame (data example below). So that is, I would like to select the first entry when the factor1 =A and then the first row when factor1=B etc. I have thousands of entries so I need some gene