mode_value {starsExtra} | R Documentation |
Mode
Description
Find the mode (i.e., most common value) in a numeric vector. In case of ties, the first encountered value is returned.
Usage
mode_value(x, na_flag = -9999)
Arguments
x |
A |
na_flag |
Value used to mark |
Value
The mode, numeric
vector of length 1
Examples
x = c(3, 2, 5, 5, 3, 10, 2, 5)
mode_value(x)
[Package starsExtra version 0.2.8 Index]