Description Usage Arguments Value Examples
It's kinda dumb that R doesn't have a built-in mode function. So here.
1 | mode.value(x)
|
x |
vector of values; can be integers/strings/booleans/etc. |
value the value that occurs most often
1 2 3 | # Construct vector where 10 appears three times.
x <- c(1:10, 10:20, 10:30)
mode.value(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.