dataset <- example_dataset
grouping <- sample(c("A", "B", "C"), length(dataset$cell_ids), replace = TRUE)
names(grouping) <- dataset$cell_ids
dataset <- add_grouping(dataset, grouping)
head(dataset$grouping)
Run the code above in your browser using DataLab