the.mode

0th

Percentile

Mode

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

Usage
the.mode(x)
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

Aliases
  • the.mode
Examples
# NOT RUN {
# 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)
# }
Documentation reproduced from package sur, version 1.0.0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.