Calculate the mode (modal value) and return a label
Calculate the mode (modal value) and return a label
modal(x, na.rm = TRUE)
x |
A vector |
na.rm |
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.