R/perc_5.R

Defines functions perc_5

Documented in perc_5

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

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