R/helpers.R
calc_mode.Rd
Calculates the mode of a given vector.
calc_mode(x)
Any kind of vector — numeric, character, logical.
The mode(s) of that vector.
calc_mode(c(1,1,2,3,4))#> [1] 1calc_mode(c('the','quick','brown','fox','jumped','over','the','lazy','dog'))#> [1] "the"calc_mode(c(TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE))#> [1] FALSE