modalvalue: Determine the mode of a distribution

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Find the most common entry in a vector. Ties are not allowed, the first value encountered within the modal set if there are ties is deemed the mode.

Usage

1

Arguments

x

numeric vector.

Value

Numeric value of the mode.

Examples

1
2
 d1 <- c(1, 1, 1, 2, 2, 3)
 modalvalue(d1)

weecology/LDATS documentation built on March 28, 2020, 11:20 a.m.