[R] selecting by variable
eugenesalinas2003 at yahoo.com
Wed Aug 27 10:49:23 CEST 2003
I'm a recent R convert so I haven't quite figured out
the details yet...
How do I select one variable by another one? Ie if I
want to draw the histogram of variable X only for
those individuals that also have a value Y in a
In STATA I would give something like:
histogram X if ((Y>=A & Y<=B))
(The data is for individuals and each individual has a
number of characteristics including X and Y).
More information about the R-help