[R] Partial aggregate on sorted data

Yves Moisan ymoisan at groupesm.com
Wed Oct 24 21:50:17 CEST 2007


>why not:
>aggregate(myDataframe$TargetValue,list(SomeFactor =
  myDataframe$SomeFactor),function(x) mean(x[x>quantile(x,.66)]))

Great stuff.  Just what I was looking for !  Thanx a lot !!
-- 
View this message in context: http://www.nabble.com/Partial-aggregate-on-sorted-data-tf4683988.html#a13393223
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list