calc_mode | R Documentation |
Calculates the mode of a given vector.
calc_mode(x)
x |
Any kind of vector — numeric, character, logical. |
The mode(s) of that vector.
calc_mode(c(1, 1, 2, 3, 4))
calc_mode(c('the', 'quick', 'brown', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog'))
calc_mode(c(TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.