Not to be confused with mode in lowercase, a base R function that returns the storage mode of an object.

Mode(x)

Arguments

x

Vector

Value

Scalar: most frequent value.

Examples

Mode(c(1, "b", "b", 0.3))
#> [1] "b"