Mode: Compute the mode of a vector (can be multiple results).

Description Usage Arguments Value Examples

View source: R/Mode.R

Description

Via http://stackoverflow.com/questions/2547402/is-there-a-built-in-function-for-finding-the-mode

Usage

1
Mode(x, exclude_na = TRUE)

Arguments

x

vector

exclude_na

Exclude NA from being a possible mode.

Value

Vector of modal values in arbitrary order.

Examples

1
2
3
4
5
6
7
library(ck37r)

data(Boston, package = "MASS")

table(Boston$chas)

Mode(Boston$chas)

ck37r documentation built on Feb. 6, 2020, 5:09 p.m.

Related to Mode in ck37r...