[R] quantile() and boxplot.stats()

Vladimir N. Kutinsky kutinskyv at obninsk.com
Tue May 14 19:32:46 CEST 2002


Hello,

I faced something I can't understand. When I use boxplot.stats(1:10) and
quantiles(1:10) the results are different for 25% and 75%:

> boxplot.stats(1:10)
$stats
[1]  1.0  3.0  5.5  8.0 10.0

> quantile(1:10)
   0%   25%   50%   75%  100%
 1.00  3.25  5.50  7.75 10.00

Actually, I expected the value 3 for 25% and 8 for 75% as results of
quantile(1:10). Can you please explain me why it isn't so.

Regards,
Vlad

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list