healthcareai (version 2.3.0)

Mode: Mode

Description

Mode

Usage

Mode(x)

Arguments

x

Either a vector or a frequency table from table

Value

The modal value of x

Examples

Run this code
# NOT RUN {
x <- c(3, 1:5)
Mode(x)
Mode(table(x))
# }

Run the code above in your browser using DataLab