returns the mode of a vector

mode_fn(x)

Arguments

x

a vector

Value

a unit vector

Examples

c("b", "b", letters) %>% mode_fn()
#> [1] "b"