Present since hutils 1.4.0. The most common element.

Mode(x)

Arguments

x

A vector for which the mode is desired.

Value

The most common element of x.

If the mode is not unique, only one of these values is returned, for simplicity.

If x has length zero, Mode(x) = x.