Description Usage Arguments Value Examples
This function is used to take the median of an ordered factor, where the output retains the metadata associated with the factor.
1 | ordinal_median(ordinal_vector, ...)
|
ordinal_vector |
The ordered factor data to be processed. |
... |
Any additional arguments to be passed directly to the median function. |
Returns a single value representing the median of the input data. However, all of the metadata around the levels and labeling will be retained.
1 2 | x <- ordered(c("a","b","b"), levels=c("a", "b"))
ordinal_median(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.