Mode: Statistical mode

View source: R/Mode.R

ModeR Documentation

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.


hutils documentation built on April 13, 2022, 5:23 p.m.