mode_stat | R Documentation |
Returns the statistical mode of an atomic vector (can be numeric, character or factor).
mode_stat(x, multiple = TRUE, na.rm = TRUE)
x |
An atomic vector. |
multiple |
Logical. If TRUE returns a vector of modes, or just the first otherwise. |
na.rm |
Logical. Indicates whether to ignore NAs. |
From https://stackoverflow.com/questions/2547402/is-there-a-built-in-function-for-finding-the-mode.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.