[R] Subsetting a dataframe

Simon Fear Simon.Fear at synequanon.com
Tue Aug 26 14:25:15 CEST 2003


subset(nameofdataset, subject %in% c(15,19))

which does "the right thing" if subject should be missing (unlikely in
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
of the "Introduction to R" manual - a suggestion for future releases?

Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear at synequanon.com
web: http://www.synequanon.com
Number of attachments included with this message: 0
This message (and any associated files) is confidential and\...{{dropped}}

More information about the R-help mailing list