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.


HughParsonage/hutils documentation built on Feb. 12, 2023, 8:26 a.m.