hutils (version 1.5.0)

Mode: Statistical mode

Description

Present since hutils 1.4.0. The most common element.

Usage

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.