[R] select value from a column depending on a value in another column

From: tornanddesperate <MatthiasNeff_at_gmx.ch>
Date: Wed, 04 May 2011 02:01:44 -0700 (PDT)

Hi everybody

I couldn't find the solution to what must be quite a simple problem. Maybe you can help?

       treatment session period stage wage_accepted market
1      1            1         1        1       25                  public
2      1            1         1        1       19                  privat
3      1            1         1        1       15                  public
4      1            1         1        2       32                  public
5      1            1         1        2       13                  privat

>From this table, I'd like to choose only those values in the column
"wage_accepted" that have the value "public" in the column "market". How can I do this?

Is there a good general help site for R that would explain basic table manipulations such as this?

Thank you very much for your help

View this message in context: http://r.789695.n4.nabble.com/select-value-from-a-column-depending-on-a-value-in-another-column-tp3494926p3494926.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 05 May 2011 - 06:25:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive