[R] Subset function

stat.kk stat.kk at gmail.com
Fri Sep 9 13:38:44 CEST 2011


can anyone help me how to use 'subset' function on my data frame?
I have created data frame 'data' with a few variables and with row names.
Now I would like to subset rows with concrete row names. 
Using data[] I know how to do it. But I dont know how to formulate the
subset condition:
subset(data, subset = ?, select = c(var1, var2))

Thank you very much,

View this message in context: http://r.789695.n4.nabble.com/Subset-function-tp3801397p3801397.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list