get_mode | R Documentation |
Find the modal value for a vector
get_mode(x)
x |
is a vector |
Finds the most common value. If there is a tie, the value that is first alphabetically is taken.
get_mode(c("a", "a", "b"))
get_mode(c("a", "b", "b"))
get_mode(c("a", "a", "b", "b"))
get_mode(c("b", "b", "a", "a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.