View source: R/heatmap_functions.R
subsampleCells | R Documentation |
Subsets a categorical vector to include up to a maximum number of values for each category.
subsampleCells(clustersF, subSamp = 25, seed = 5)
subSamp |
maximum number of values for each category to subsample |
seed |
for reproducibility |
clusters |
vector of cluster labels (or any category) in factor or character format |
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.