Learn R Programming

omnibus (version 1.2.15)

mmode: Modal value(s)

Description

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

Usage

mmode(x)

Value

Numeric or character vector.

Arguments

x

Numeric or character vector.

Examples

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

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

Run the code above in your browser using DataLab