R/calc_mode.R
calc_mode.Rd
Calculate the mode of a sample
calc_mode(v)
A vector.
The mode, or a vector of modes if the sample is multi-modal.
Michaja Pehl
calc_mode(c(1, 1, 100)) #> [1] 1 calc_mode(c('a', 'a', 'b', 'c', 'c')) #> [1] "a" "c"