Calculate statistical mode.
See also
Examples
# Prepare Data
v1 <- c(1, 1, 2, 2, 3)
#Calculate Statistical Mode
Mode(v1)
#> [1] 1 2
Mode(v1, multipleModes = "mean")
#> [1] 1.5
Mode(v1, multipleModes = "first")
#> [1] 1
Calculate statistical mode.
# Prepare Data
v1 <- c(1, 1, 2, 2, 3)
#Calculate Statistical Mode
Mode(v1)
#> [1] 1 2
Mode(v1, multipleModes = "mean")
#> [1] 1.5
Mode(v1, multipleModes = "first")
#> [1] 1