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’).
NA
andNaN
values are not allowed in numeric vectors unlessna.rm
isTRUE
.- 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
NA
andNaN
's are removed fromx
before the quantiles are computed.