Mode | R Documentation |
Calculate statistical mode.
Mode(x, multipleModes = "all")
x |
Numerical vector. |
multipleModes |
How to handle multiple modes. One of:
|
Calculates statistical mode(s).
Statistical mode(s).
https://stackoverflow.com/questions/2547402/how-to-find-the-statistical-mode/8189441#8189441
Other computations:
kish_ess()
,
meanSum()
,
mySum()
# Prepare Data
v1 <- c(1, 1, 2, 2, 3)
#Calculate Statistical Mode
Mode(v1)
Mode(v1, multipleModes = "mean")
Mode(v1, multipleModes = "first")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.