powered by
Calculate statistical mode.
Mode(x, multipleModes = "all")
Statistical mode(s).
Numerical vector.
How to handle multiple modes. One of:
"mean" = if there are multiple modes, take the mean of all modes
"mean"
"first" = if there are multiple modes, select the first mode
"first"
"all" = if there are multiple modes, return all modes
"all"
Calculates statistical mode(s).
https://stackoverflow.com/questions/2547402/how-to-find-the-statistical-mode/8189441#8189441
Other computations: kish_ess(), meanSum(), mySum()
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")
Run the code above in your browser using DataLab