Get and set name of the special column for group labels
Arguments
- object
a
MetaboSet
object- value
string, name of column to be designated for holding group labels
Value
Character, the name of the grouping variable.
For the endomorphism, an object with the grouping variable set to the specified variable.
Examples
data(example_set)
ex_set <- as(example_set, "MetaboSet")
#> INFO [2025-06-23 22:36:36]
#> Checking feature information
#> INFO [2025-06-23 22:36:36] Checking that feature IDs are unique and not storedas numbers
#> INFO [2025-06-23 22:36:36] Checking that feature data includes a 'Split' column
#> INFO [2025-06-23 22:36:36] Checking that feature data includes a 'Flag' column
#> INFO [2025-06-23 22:36:36] Checking that feature abundances only contain numeric values
#> INFO [2025-06-23 22:36:36] Setting row and column names of exprs based on feature and pheno data
# Get name of grouping variable
group_col(ex_set)
#> [1] NA
data(example_set)
ex_set <- as(example_set, "MetaboSet")
#> INFO [2025-06-23 22:36:36]
#> Checking feature information
#> INFO [2025-06-23 22:36:36] Checking that feature IDs are unique and not storedas numbers
#> INFO [2025-06-23 22:36:36] Checking that feature data includes a 'Split' column
#> INFO [2025-06-23 22:36:36] Checking that feature data includes a 'Flag' column
#> INFO [2025-06-23 22:36:36] Checking that feature abundances only contain numeric values
#> INFO [2025-06-23 22:36:36] Setting row and column names of exprs based on feature and pheno data
# Set grouping variable
group_col(ex_set) <- "Group"