[R] quantile

liujb liujulia7 at yahoo.com
Mon Sep 29 22:09:14 CEST 2008


Hello,

I need to assign a number to each x[i], i=1:100, based on the value of x[i]
and where they are in the distribution of x[i]. For example 1 for x[4] means
x[4] is below 25%. I can obtain the quantile using quantile command, and
just loop through the 1:100 and assign the correct number. But I was just
wondering whether there are a more efficient way.

Thank you,
sincerely,
Julia
-- 
View this message in context: http://www.nabble.com/quantile-tp19730778p19730778.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list