modus: modus

Description Usage Arguments Value Author(s) Examples

Description

Function to calculate the mode of a vector.

Usage

1
modus(x)

Arguments

x

A numeric, character or logical vector.

Value

The value returned is a vector. Its element/s is/are either of class numeric, logical or character, depending on the class of the input.

Author(s)

Alessandro Feller <ale_feller@hotmail.com>

Examples

1
2
x <- c(0:10,5)
modus(x)

alfell/feller documentation built on May 4, 2019, 4:14 a.m.