powered by
Finds the most frequent value (the mode) in a vector.
d_mode(x)
The mode of the vector. Returns NA if the vector is empty.
A vector.
d_mode(c(1, 2, 2, 3, 3, 3, 4)) d_mode(c("a", "b", "a"))
Run the code above in your browser using DataLab