Skip to content
Prev 12255 / 398502 Next

returning quartiles of a list?

Hmmm...  I tried this first and it only works for even lists
[1] 6
[1] 5 7 4

(works fine)
[1] 4 7 5

(this is just a reverse of the previous)
[1] 4 1 4 1

(this double counts the first 4, of course)
[1] 1 4 1

(but this works for even lists)
[1] 5 7

(works)
(and this is now an odd list)
[1] 5 7 4

(works fine)
[1] 1 4 1

(but the bit that worked for the even lists above doesn't work here
(and I don't quite understand why not...)

thanks!
greg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._