Description Usage Arguments Details Examples
mode_order()
calculates the mode of a vector, mostly used as the default .resolve
option in fixed_force()
1 | mode_order(x)
|
x |
Vector to calculate the mode of. |
In the case of ties, the first-ordered value in the vector wins.
1 2 3 4 5 6 | x <- c(1, 2, 2, NA, 5, 3, 4)
mode_order(x)
# Ties are broken by order
x <- c(2, 2, 1, 1)
mode_order(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.