Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Mode

Calculate mode (most common element) of a vector


Description

Calculate mode (most common element) of a vector

Usage

Mode(x, ux = unique(x))

Arguments

x

a vector

ux

vector of values x may take

Changes

Factored ux into argument – njf, May 18, 2015

Author(s)

References


stackoverflow

Stack Overflow's Greatest Hits

v0.7.0
CC BY-SA 4.0
Authors
Neal Fultz <nfultz@gmail.com> and the StackOverflow.com community
Initial release
2020-01-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.