Summarize values in a metadata variable
unique_values.Rd
Returns the unique values for the metadata variable provided. unique_values
is a utility function for summarizing metadata in an object.
Examples
unique_values(AML_Seurat, var = "Batch")
#> [1] "BM_200AB" "PBMC_200AB"
unique_values(AML_Seurat, var = "condensed_cell_type")
#> [1] "Plasma cells" "Primitive"
#> [3] "Dendritic cells" "Plasmacytoid dendritic cells"
#> [5] "BM Monocytes" "NK Cells"
#> [7] "CD8+ T Cells" "B Cells"
#> [9] "CD4+ T Cells" "PBMC Monocytes"