statmode: Statistical Mode

View source: R/statmode.R

statmodeR Documentation

Statistical Mode

Description

Get statistical mode, the most frequent value.

Usage

statmode(x, all = FALSE, ...)

Arguments

x

an object, usually a vector or matrix.

all

whether to return all modes (default returns only first).

...

passed to table.

Value

The most frequent value in x, possibly a vector if all = TRUE.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.