Simple Question

I have 100x100 matrix and I want to calculte each row's 30,50% quantile

ex)

a=matrix(rnorm(10000),100,100)
quantile(a[1,],c(0.3,0.5))
quantile(a[2,],c(0.3,0.5))
.
.
.
.


I want get results at once.

so I try quantile(a[1:100,],c(0.3,0.5)) but I can get what I exactly want.

How can I calculte that?





-- 
View this message in context: 
http://r.789695.n4.nabble.com/Quantile-question-tp2966195p2966195.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org 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.

Reply via email to