[R] how to get the percentile of a number in a vector

David Winsemius dwinsemius at comcast.net
Tue Aug 2 18:00:28 CEST 2011


On Aug 2, 2011, at 10:14 AM, ראובן אברמוביץ wrote:

>
>   I'm familiar with the quantile() command, but what if I have a  
> specific
>   number that I want to know its location in a vector? I know that  
> in known
>   distributions, (for example the normal distribution), there is  
> pnorm and
>   qnorm, but how can I do it with unknown vector?

?ecdf

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list