calc_mode: Calculate the mode of a sample

View source: R/calc_mode.R

calc_modeR Documentation

Calculate the mode of a sample

Description

Calculate the mode of a sample

Usage

calc_mode(v)

Arguments

v

A vector.

Value

The mode, or a vector of modes if the sample is multi-modal.

Author(s)

Michaja Pehl

Examples

calc_mode(c(1, 1, 100))
calc_mode(c('a', 'a', 'b', 'c', 'c'))

pik-piam/quitte documentation built on April 26, 2024, 12:58 a.m.