SetQuantile: Find the Quantile of Data

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Converts a quantile in character form to a number regarding some data. String form for a quantile is represented as a number prefixed with “q”; for example, 10th quantile is “q10” while 2nd quantile is “q2”. Will only take a quantile of non-zero data values

Usage

1
SetQuantile(cutoff, data)

Arguments

cutoff

The cutoff to turn into a quantile

data

The data to turn find the quantile of

Value

The numerical representation of the quantile

Examples

1
2
set.seed(42)
SetQuantile('q10', sample(1:100, 10))

mrod0101/seurat documentation built on March 2, 2022, 12:17 a.m.