[R] Split data frame by conditional and column at the same time

Daniel Malter daniel at umd.edu
Fri May 14 05:37:23 CEST 2010


Does anything speak against selecting only x where x$B<20 and then splitting
it by x$C?

split(x[!x$B<20,],x$C)

HTH,
Daniel


-- 
View this message in context: http://r.789695.n4.nabble.com/Split-data-frame-by-conditional-and-column-at-the-same-time-tp2197908p2216072.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list