>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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.