mode_value | R Documentation |
Find the mode (i.e., most common value) in a numeric vector. In case of ties, the first encountered value is returned.
mode_value(x, na_flag = -9999)
x |
A |
na_flag |
Value used to mark |
The mode, numeric
vector of length 1
x = c(3, 2, 5, 5, 3, 10, 2, 5)
mode_value(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.