compute_mode | R Documentation |
Computes the mode (most frequent value) of an atomic vector.
compute_mode(x, ties_method = "random", na_rm = TRUE)
x |
( |
ties_method |
( |
na_rm |
( |
(vector(1)
): mode value.
compute_mode(c(1, 1, 1, 2, 2, 2, 3))
compute_mode(c(1, 1, 1, 2, 2, 2, 3), ties_method = "last")
compute_mode(c(1, 1, 1, 2, 2, 2, 3), ties_method = "random")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.