modal | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.