pd <- data.frame(
title = c("Control sample", "Control sample", "Treat sample", "Treat sample"),
stringsAsFactors = FALSE
)
rownames(pd) <- paste0("s", 1:4)
res <- auto_geo_group(
pd,
choice = 1,
levels = c("Control", "Treat"),
ref = "Control",
verbose = FALSE
)
res$source_col
levels(res$group_list)
table(res$group_list)
Run the code above in your browser using DataLab