Learn R Programming

hutils (version 2.0.0)

Mode: Statistical mode

Description

Present since hutils 1.4.0. The most common element.

Usage

Mode(x)

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.

Arguments

x

A vector for which the mode is desired.