Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] Percentile rank for each element in list

mic

2010-09-07

Replies: Find Java Web Hosting

Author LoginPost Reply
Heeeelp

Given this data
x <- c(1,5,100,300,250,200,550,900,1000)
> quantile(x)
0% 25% 50% 75% 100%
 1 100 250 550 1000

When I run the quantile, I can only know the value of the nth
percentile

I want to know what's the percentile position of each items in the
list
Sample
1 = 100% on the list has 1 or more
5 = more than x% on the list has 5 or more
100 = more than x% on the list has 100 or more
250 = more than 50% on the list has 250 or more
etc....

Thanks in advance

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.