[R] NTH PERCENTILE COULMNWIESE

Rantony antony.akkara at ge.com
Wed Jul 18 09:06:48 CEST 2012


Hi,

Here i have an matrix
mydat <- 
ABC    XYZ
-----     ------
12          6
6             50
90         100
55           85
100         25

i need to find the " NTH percentile "  [result should be in column-wise].
here i have a code for NTH percenile,

For eg:- if i need 20th-percentile then,
quantile(ncol(mydat),.2)  - here i getting output for complete matrix ,But i
need this for all the columnswise. like this,

for nth percentile
          ABC     XYZ
          ------    -------
20%   10        24    [here, given percentile value is not exact result, its
just for output format]

-Its urgent !

- Thanks 
Antony.


--
View this message in context: http://r.789695.n4.nabble.com/NTH-PERCENTILE-COULMNWIESE-tp4636839.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list