Re: [R] Multiple subsetting of a dataframe based on many conditions

2013-04-08 Thread Adams, Jean
# here's an example data frame n <- 10 mydf <- data.frame(present=rnorm(n), answer=sample(1:4, n, replace=TRUE), p.num=sample(1:18, n, replace=TRUE), session=sample(1:2, n, replace=TRUE), count=sample(1:8, n, replace=TRUE), type=sample(1:3, n, replace=TRUE)) # define a new variable, combo5, that

[R] Multiple subsetting of a dataframe based on many conditions

2013-04-06 Thread Mansfield, Desmond
Hello Everybody, I'm working with a dataframe that has 18 columns. I would like to subset the data in one of these columns, "present", according to combinations of data in six of the other columns within the data frame and then save this into a text file. The columns I would like to use to subs