[R] Quantile question

Takos zyoungs at gmail.com
Thu Oct 7 07:20:18 CEST 2010


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.



More information about the R-help mailing list