Compute the mode of a numerical or ordinal variable.

mode_stat(x)

Arguments

x

A numeric vector containing the values whose mode is to be computed.

Author

D. Schmitz

Examples

data("data_s")

mode_stat(x = data_s$age)
#> [1] 21