Mode of a vector x

dmode(x)

Arguments

x

vector of values

Value

vector (can return multiple maxima)

Examples

dmode(c(2,3,34,2,2))
#> [1] 2