Re: [R] Question about extracting certain rows from one column in a data.frame

2012-05-28 Thread Jorge I Velez
Hi Kelly, Check ?subset in the R console. Here is a piece of code (untested): subset(LOG, sample_data %in% c("Noy", "PLO")) HTH, Jorge.- On Mon, May 28, 2012 at 3:16 PM, Kelly Cool <> wrote: > I was wondering if there was a quick way to extract out certain rows from > a data set in R? > I

Re: [R] Question about extracting certain rows from one column in a data.frame

2012-05-28 Thread R. Michael Weylandt
On Mon, May 28, 2012 at 3:16 PM, Kelly Cool wrote: > I was wondering if there was a quick way to extract out certain rows from a > data set in R? > I have a data.frame, LOG,  where in one column, sample_data_tx, there is a > list of 62 different types of treatment. I've sub-selected the rows tha

[R] Question about extracting certain rows from one column in a data.frame

2012-05-28 Thread Kelly Cool
I was wondering if there was a quick way to extract out certain rows from a data set in R?  I have a data.frame, LOG,  where in one column, sample_data_tx, there is a list of 62 different types of treatment. I've sub-selected the rows that contain the names, "PLO" and "NOY" to make a new vector