modeInteger: Calculate modal value from integer vector

View source: R/modeInteger.R

modeIntegerR Documentation

Calculate modal value from integer vector

Description

This function computes the modal value, i.e. the value that appears most often, from an integer vector.

Usage

modeInteger(v)

Arguments

v

Integer. The input vector.

Value

The integer modal value.

Author(s)

Tim Appelhans

Examples

set.seed(10)
x <- sample(1:10, 100, replace = TRUE)

modeInteger(x)


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.