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.


arni-magnusson/arni documentation built on Nov. 3, 2023, 7:35 p.m.