.Mode | R Documentation |
This is an internal utility function to compute the mode(s) of a discrete distribution.
.Mode(x, na.rm = TRUE)
x |
A vector or matrix of discrete values. |
na.rm |
A logical value indicating whether NA values should be stripped before the computation proceeds (default: TRUE). |
A vector of values corresponding to the mode(s) of x.
Simon Garnier, garnier@njit.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.