[R] extracting from a data.frame

Douglas Bates bates at stat.wisc.edu
Sat Jan 29 10:00:54 CET 2005


Chuck Cleland wrote:
> newdat <- subset(a, a$V3 == "O")

You can even use

newdat <- subset(a, V3 == "O")

because of the way that subset evaluates the "subset" expression.




More information about the R-help mailing list