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/fsf documentation built on June 7, 2024, 11 a.m.