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.
______________________________________________
[email protected] mailing list
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.