Last chance! 50% off unlimited learning
Sale ends in
Calculate the mode (modal value) and return a label
modal(x, na.rm = TRUE)
A vector
If TRUE missing values are removed before calculation
From https://www.tutorialspoint.com/r/r_mean_median_mode.htm
modal(c("a", "b", "b"))
modal(c(1:10, 5))
modal(as.factor(c(letters, "b")))
modal(runif(100) > 0.5)
Run the code above in your browser using DataLab