[R] extracting a sub data frame by value of one of its columns

Faheem Mitha faheem at email.unc.edu
Sun May 7 18:39:22 CEST 2000


Dear R people,

This should be a straightforward operation, but I am having difficulties.
I have a data frame with three columns, call them a, b, and c. c is a
column of factors, 1...10. I want to extract all the rows for which c has
the value say 1, and put them in a separate data frame. I looked at the
various sort functions provided, but see no way to easily adapt them to my
needs.
                                   Sincerely, Faheem Mitha.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list