View source: R/small-utility-functions.R
stats_mode | R Documentation |
Calculate the statistical mode with is strangely missing from base R. In a tie it returns the first of the most common values encountered in the original vector.
stats_mode(x)
x |
vector from which to find the most common value |
The mode, ie the most common value. In case of ties the return is first in the original vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.