Mode | R Documentation |
This is a function that outputs a mode of a sgiven vector This is named Mode instead of mode to prevent conflict with base::mode This was taken from Stackoverflow: https://stackoverflow.com/questions/2547402/is-there-a-built-in-function-for-finding-the-mode
Mode(x, na.rm = T)
x |
The input vector to compute the mode |
na.rm |
Whether to remove NA values. Defaults to TRUE. |
x <- c(1, 2, 2, 2, 3, 3, NA) Mode(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.