Re: [R] Subsetting a dataframe

2003-08-26 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Hi R-people I have a question concerning subsetting. I have a dataframe which contains among other variables the variable subject. For each subject number there are several rows, e.g.: subject treatment concentration day 19 a 15,4 1 19

RE: [R] Subsetting a dataframe

2003-08-26 Thread Simon Fear
Or subset(nameofdataset, subject %in% c(15,19)) which does the right thing if subject should be missing (unlikely in this example I know, but likely to be a different story if conditioning on concentration, say). A pity subset() and transform() are not mentioned in the subsetting section of