powered by
Calculate the mode of numeric, character, or factor data
mmode(x, na.rm = FALSE)
Numeric, character, or factor value.
Numeric, character, or factor vector.
Logical. If TRUE then remove NAs first. Otherwise fail.
TRUE
NA
mmode(round(10 * rnorm(1000, 2))) mmode(c('a', 'b', 'b', 'b', 'c', 'd', 'd'))
Run the code above in your browser using DataLab