View source: R/markerGenesAndMapping.r
subsampleCells | R Documentation |
Subsets a categorical vector to include up to a maximum number of values for each category.
subsampleCells(clusters, subSamp = 25, seed = 5)
clusters |
vector of cluster labels (or any category) in factor or character format |
subSamp |
maximum number of values for each category to subsample. Can be single integer for global subsampling, or a *named* vector corresponding to how many values to take from each category in clusters. |
seed |
for reproducibility |
returns a vector of TRUE / FALSE with a maximum of subSamp TRUE calls per category
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.