R/PercentAbove.R

Defines functions PercentAbove

Documented in PercentAbove

#' @title PercentAbove
#'
#' @description Return the percentage of a list that is above a threshold
#' @param x A list of numeric values.
#' @param threshold A numeric threshold value.
#'
#' @return double
#' @export
#'
#' @examples
PercentAbove <- function(x, threshold){
  100*length(x = x[x > threshold]) / length(x = x)
}
milescsmith/seuratBubblePlot documentation built on Jan. 23, 2022, 2:40 p.m.