[R] sub data frame by expression

Paul Lemmens P.Lemmens at nici.kun.nl
Fri Oct 17 12:40:58 CEST 2003


Hoi Arne.Muller at aventis.com,

--On vrijdag 17 oktober 2003 12:11 +0200 Arne.Muller at aventis.com wrote:

> I'd like to create a sub data frame containing all rows where Batch ==
> "OLD" and keeping the 4 colums. Assume that I don't know the order of the
> rows

subset(x, Batch == 'Old') or something like that!?



-- 
Paul Lemmens
NICI, University of Nijmegen              ASCII Ribbon Campaign /"\
Montessorilaan 3 (B.01.03)                    Against HTML Mail \ /
NL-6525 HR Nijmegen                                              X
The Netherlands                                                 / \
Phonenumber    +31-24-3612648
Fax            +31-24-3616066




More information about the R-help mailing list