calculate_mode | R Documentation |
calculate_mode is a generic function to compute the most abundant element in a list.
calculate_mode(x, ...)
## Default S3 method:
calculate_mode(x, na.rm = FALSE, ...)
x |
An R object. Currently there are methods for numeric/logical vectors and date, date-time and time interval objects. Complex vectors are allowed for trim = 0, only. |
na.rm |
a logical evaluating to TRUE or FALSE indicating whether NA values should be stripped before the computation proceeds. |
... |
further arguments passed to or from other methods. |
the most frequent value.
https://stackoverflow.com/a/8189441
[mean()] [median()] [sd()] [summary()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.