Description Usage Arguments Details Value Author(s) Examples
Calculate the mode (most frequent value) of a variable
1 |
x |
a vector |
randTies |
If |
The modus
function is designed to always return only one value for the mode of a variable. If the variable is bimodal or multimodal, the function returns either NA
(if randTies = FALSE
) or a randomly chosen value of all modes (if randTies = TRUE
).
the mode (most frequent value) of the variable
Martin Hecht
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.