Skip to content
Prev 315836 / 398502 Next

Percentiles with R for a big data.frame

On Jan 22, 2013, at 5:58 AM, Simonas Kecorius wrote:

            
You guess? What result and what is "right"?
You have already been told that you are misspelling the name of the R  
function.

The other open question in my mind is whether you were hoping for  
something other than a single quantile (in this case the 10th  
percentile, or perhaps wanted the quantiles that would divide your  
data into deciles?

If you want to do the calculation within groups then the second  
argument to `aggregate` must specify the grouping. By design  
`aggregate` will apply the function on all columns.