powered by
This function calculates the mode of a numeric or character vector. If there are multiple modes, the first one is returned. The code is taken from an R help page.
.getmode(v)
The mode of `v`.
A numeric or character vector.
.getmode(c(1, 2, 3, 3)) .getmode(c("a", "b", "b", "c"))
Run the code above in your browser using DataLab