mmode: Modal value(s)

View source: R/mmode.r

mmodeR Documentation

Modal value(s)

Description

Modal value. If there is more than one unique mode, all modal values are returned.

Usage

mmode(x)

Arguments

x

Numeric or character vector.

Value

Numeric or character vector.

Examples

x <- c(1, 2, 3, 3, 4, 5, 3, 1, 2)
mmode(x)

x <- c(1, 2, 3)
mmode(x)


omnibus documentation built on Sept. 17, 2024, 5:09 p.m.