Hi,
On Thu, Jan 12, 2012 at 3:10 PM, dadrivr wrote:
> How do I subset data to only keep those rows of a dataframe where a
> variable's value matches one item of a vector. For example, how do I keep
> all of the rows (and all variables) where mydata$id equals one of the values
> in keepid? See b
How do I subset data to only keep those rows of a dataframe where a
variable's value matches one item of a vector. For example, how do I keep
all of the rows (and all variables) where mydata$id equals one of the values
in keepid? See below?
mydata <- NULL
mydata$id <- 1:30
mydata$value <- seq(fr
2 matches
Mail list logo