Learn R Programming

SpaCCI (version 1.0.4)

GetShuffledCT: 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)

Value

A character vector of the same length as `CellType`, with elements shuffled such that no element remains in its original position.

Arguments

CellType

A character vector representing the cell types to be shuffled.

Examples

Run this code
# \donttest{
original <- c("B_cell", "T_cell", "NK_cell", "Macrophage")
shuffled <- GetShuffledCT(original)
print(shuffled)
# }

Run the code above in your browser using DataLab