Description Usage Arguments Value Examples
Ignoring NAs, find the most common element in a vector (statistical mode). If multiple elements are tied for the mode, the last element in sorted order will be returned, unless all elements are specifically requested, in which case a vector of all modes will be returned.
1 |
vec |
Atomic vector. |
return_all_modes |
Whether or not to return a vector of all modes (for ties) (logical scalar). |
ignoreBlanks |
Whether or not to ignore blanks (i.e. NA's and empty strings ("")) (logical scalar). |
Scalar of same type as vec
,
or a vector of the same type if there are multiple modes,
and return_all_modes
is TRUE
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.