powered by
Computes all modes (most common value).
mcval(x, ...)# S3 method for default mcval(x, ...)# S3 method for histogram mcval(x, exact = FALSE, ...)compute_modes(x, ...)mcv(x, ...)
# S3 method for default mcval(x, ...)
# S3 method for histogram mcval(x, exact = FALSE, ...)
compute_modes(x, ...)
mcv(x, ...)
A vector of modes.
data object
further arguments
logical: either compute the exact mode or use class mids (default: FALSE)
FALSE
x <- sample(1:5, 15, replace=TRUE) mcval(x)
Run the code above in your browser using DataLab