R/perc_95.R

Defines functions perc_95

Documented in perc_95

#' perc_95
#'
#' Helper function to calculate 5th percentile.
#' @param x Numeric vector over which to calculate 95th percentile.
#' @param na.rm Logical. Should missing values be removed? Defaults to TRUE.
#' @keywords internal

perc_95 <- function(x, na.rm = TRUE) {
  return(stats::quantile(x = x, probs = 0.95, names = FALSE, na.rm = na.rm))
  }
rasenior/PatchStatsFLIR documentation built on Oct. 28, 2020, 11:53 p.m.