Median as the 50th quantile with an option to select quantile algorithm
Arguments
- x
numeric vector whose sample quantiles are wanted, or an object of a class for which a method has been defined (see also ‘details’).
NAandNaNvalues are not allowed in numeric vectors unlessna.rmisTRUE.- type
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used.
- na.rm
logical; if true, any
NAandNaN's are removed fromxbefore the quantiles are computed.