Finds the mode value(s) of a numeric vector.

ct_mode(x)

Arguments

x

A numeric vector.

Value

A numeric vector - the mode value(s) of the numbers in x.

Examples

ct_mode(c(10,10,12,43))
#> [1] 10
ct_mode(c(10,43, 10,12,43))
#> [1] 10 43