Get the mode of a vector or variable
getmode.Rd
The mode is the number that appears the most often in a vector or variable. This measure is especially important for nominal variables since the mean or median cannot meaningfully be reported.
Examples
vec <- c("A", "A", "B")
getmode(vec)
#> [1] "A"