Compute statistical mode of a vector (value that occurs most frequently).
Works for integer, numeric, factor and character vectors. The implementation is currently not extremely efficient.
computeMode(x, ties.method = "random", na.rm = TRUE)
x |
[ |
ties.method |
[ |
na.rm |
[ |
Modal value of length 1, data type depends on data type of x
.
computeMode(c(1,2,3,3))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.