Skip to content
Prev 192262 / 398500 Next

Odp: How can I appoint a small part of the whole data

Hi

use any of suitable selection ways that are in R.

E.g.

data[data$gender==1, ]

selects only female values

data$wage[(data$gender==1)  & (data$race=1)] selects black female wages.

and see also ?subset

Regards
Petr

r-help-bounces at r-project.org napsal dne 03.09.2009 10:51:59:
http://www.R-project.org/posting-guide.html