Learn R Programming

Seurat (version 5.0.3)

PercentAbove: Calculate the percentage of a vector above some threshold

Description

Calculate the percentage of a vector above some threshold

Usage

PercentAbove(x, threshold)

Value

Returns the percentage of x values above the given threshold

Arguments

x

Vector of values

threshold

Threshold to use when calculating percentage

Examples

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

Run the code above in your browser using DataLab