R/getmode.R

# getmode
#
#
getmode <- function(values) {
    uniqValues <- unique(values)
    uniqValues[which.max(tabulate(match(values, uniqValues)))]
}

Try the esmprep package in your browser

Any scripts or data that you put into this service are public.

esmprep documentation built on July 5, 2019, 5:03 p.m.