Learn R Programming

healthcareai (version 2.5.1)

Mode: Mode

Description

Mode

Usage

Mode(x)

Value

The modal value of x

Arguments

x

Either a vector or a frequency table from table

Examples

Run this code
x <- c(3, 1:5)
Mode(x)
Mode(table(x))

Run the code above in your browser using DataLab