Find the mode in a vector x

modemfv_vctrs(x)

Arguments

x

a vector

Value

object of length 1, the same type as x

Examples

modemfv_vctrs(ggplot2::diamonds$cut)
#> [1] Ideal
#> Levels: Fair < Good < Very Good < Premium < Ideal