moda: Function to calculate mode

Description Usage Arguments Value Examples

View source: R/moda.R

Description

Function to calculate mode

Usage

1
moda(v, na.rm = FALSE)

Arguments

v

Vector with the data

na.rm

If TRUE NAs are removed before calculations

Value

Numeric value with the mode of v

Examples

1
moda(c(2,3,5,3,2,6,2,3,5,3))

pacoalonso/alonsaRp documentation built on May 17, 2020, 9 a.m.