powered by
get_mode() is deprecated. Use mode_value(), which takes the same arguments.
get_mode()
mode_value()
get_mode(x, na.rm = TRUE, getlast = TRUE, retain_class = TRUE)
As mode_value().
Vector, factor or integer: Input data.
Logical: If TRUE, exclude NAs (using na.exclude(x)).
na.exclude(x)
Logical: If TRUE, get the last value in case of ties.
Logical: If TRUE, output is always same class as input.
EDG
suppressWarnings(get_mode(c(9, 3, 4, 4, 0, 2, 2, NA)))
Run the code above in your browser using DataLab