mode {vvconverter} | R Documentation |
Determine the most common value in a vector. If two values have the same frequency, the first occurring value is used.
mode(x, na.rm = FALSE)
x |
a vector |
na.rm |
If TRUE: Remove nas before the calculation is done |
the most common value in the vector x
mode(c(0, 3, 5, 7, 5, 3, 2))