Learn R Programming

Zelig (version 4.2-1)

Mode: Compute the Statistical Mode of a Vector

Description

Compute the Statistical Mode of a Vector

Usage

Mode(x)

Arguments

x
a vector of numeric, factor, or ordered values

Value

  • the statistical mode of the vector. If two modes exist, one is randomly selected (by design)