R/modal.R

Defines functions modal

Documented in modal

#' compute modal value
#'
#' @param x Numeric.
#'
#' @export
modal <- function(x) {
  names(which.max(table(x)))
}
sachserf/sf documentation built on June 8, 2024, 4:23 p.m.