View source: R/median_character.R
median_character | R Documentation |
Return the median of a character vector
median_character(x, na.rm = TRUE, tie = c("lower", "upper"), ...)
x |
an object for which a method has been defined, or a numeric vector containing the values whose median is to be computed. |
na.rm |
a logical value indicating whether |
tie |
Are ties broken using the upper or lower value? |
... |
Passed to 'sort()' |
As half-way between two values in a character vector is not defined, in the case of a median that would be between two values, either the lower or upper value is selected.
The median value of the vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.