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)

Arguments

x

vector

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 June 4, 2017, 1:02 a.m.