[R] median of binned values
martin.tomko at geo.uzh.ch
Wed Dec 19 10:17:15 CET 2007
I have a vector (array, table row, whatever is best) of frequency values
for categories (or bins), and I need to find the median category.
Trivial to do by hand, but I was wondering if there is a means to do it
in R in an elegant way.
The obvious medioan(vector) returns the median frequency for the binns,
and that is not what I want. i.e,:
I want it to return cat5, instead of cat3.
Thanks a lot
More information about the R-help