mmode {statisfactory}R Documentation

Calculate the mode of numeric, character, or factor data

Description

Calculate the mode of numeric, character, or factor data

Usage

mmode(x, na.rm = FALSE)

Arguments

x

Numeric, character, or factor vector.

na.rm

Logical. If TRUE then remove NAs first. Otherwise fail.

Value

Numeric, character, or factor value.

Examples


mmode(round(10 * rnorm(1000, 2)))
mmode(c('a', 'b', 'b', 'b', 'c', 'd', 'd'))


[Package statisfactory version 1.0.4 Index]