PercentAbove: Calculate the percentage of a vector above some threshold

View source: R/utilities.R

PercentAboveR Documentation

Calculate the percentage of a vector above some threshold

Description

Calculate the percentage of a vector above some threshold

Usage

PercentAbove(x, threshold)

Arguments

x

Vector of values

threshold

Threshold to use when calculating percentage

Value

Returns the percentage of x values above the given threshold

Examples

set.seed(42)
PercentAbove(sample(1:100, 10), 75)


satijalab/seurat documentation built on May 11, 2024, 4:04 a.m.