tk_PercentAbove: tk_PercentAbove...

tk_PercentAboveR Documentation

tk_PercentAbove https://github.com/satijalab/seurat/blob/4e868fcde49dc0a3df47f94f5fb54a421bfdf7bc/R/utilities.R#L2127-L2136 This was copied exactly from Seurat. The function is not exported from Seurat, so I included it here. Calculate the percentage of a vector above some threshold

Description

tk_PercentAbove https://github.com/satijalab/seurat/blob/4e868fcde49dc0a3df47f94f5fb54a421bfdf7bc/R/utilities.R#L2127-L2136 This was copied exactly from Seurat. The function is not exported from Seurat, so I included it here. Calculate the percentage of a vector above some threshold

Usage

tk_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


toddknutson/toddr documentation built on Aug. 28, 2023, 2:45 a.m.