R/getmode.R

Defines functions getmode

# getmode
#
#
getmode <- function(values) {
    uniqValues <- unique(values)
    uniqValues[which.max(tabulate(match(values, uniqValues)))]
}
mmiche/esmprep documentation built on July 9, 2018, 11:27 a.m.