GetShuffledCT {SpaCCI} | R Documentation |
This function takes a vector of cell types and returns a shuffled version where no element remains in its original position.
GetShuffledCT(CellType)
CellType |
A character vector representing the cell types to be shuffled. |
A character vector of the same length as 'CellType', with elements shuffled such that no element remains in its original position.
original <- c("B_cell", "T_cell", "NK_cell", "Macrophage")
shuffled <- GetShuffledCT(original)
print(shuffled)