Skip to content
Prev 31695 / 63424 Next

quantile(), IQR() and median() for factors

On Fri, 6 Mar 2009, Greg Snow wrote:

            
Since median and quantile are already generic, adding a 'ordered' 
method would be zero cost to other uses.  And the factor check at the 
head of median.default could be replaced by median.factor if someone 
could show a convincing performance difference.
I don't think it is 'the' median but 'a' median.  (Even English 
Wikipedia says the median is not unique for even numbers of inputs.)