mode_stat | R Documentation |
Determines the most common value in a vector. Handles multiple modes by returning a vector containing all modes. Works with any data type.
mode_stat(x, na.rm = FALSE, method = "tabulate")
x |
a vector |
na.rm |
a boolean indicating, if |
method |
specifies the method used for determining the mode |
method
must be one of either "tabulate" or "density." "Tabulate"
a vector containing the modes of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.