the.mode: Mode

Description Usage Arguments Value See Also Examples

View source: R/the.mode.R

Description

Function to obtain the mode(s) of a distribution.

Usage

1

Arguments

x

object containing data for a single variable.

Value

A numeric vector of the value(s) of the distribution that have the highest frequency of occurrence.

See Also

mean, median

Examples

1
2
3
4
5
# single mode for factor variable
the.mode(NELS$urban)
# bimodal numeric variable
a = c(14,24,62,12,12,12,36,17,11,99,99,99)
the.mode(a)

sur documentation built on Aug. 26, 2020, 1:06 a.m.

Related to the.mode in sur...