GetShuffledCT {SpaCCI} | R Documentation |
Perform a Deranged Shuffle of Cell Types
Description
This function takes a vector of cell types and returns a shuffled version where no element remains in its original position.
Usage
GetShuffledCT(CellType)
Arguments
CellType |
A character vector representing the cell types to be shuffled. |
Value
A character vector of the same length as 'CellType', with elements shuffled such that no element remains in its original position.
Examples
original <- c("B_cell", "T_cell", "NK_cell", "Macrophage")
shuffled <- GetShuffledCT(original)
print(shuffled)
[Package SpaCCI version 1.0.4 Index]