modalvalue | R Documentation |
Find the most common entry in a vector. Ties are not allowed, the first value encountered within the modal set if there are ties is deemed the mode.
modalvalue(x)
x |
|
Numeric value of the mode.
d1 <- c(1, 1, 1, 2, 2, 3)
modalvalue(d1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.