
Format labels for compositions in a dplyr pipeline
format_labels.Rd
This function formats the labels for the given compositions based on the legacy status and index. The function is designed to work within a dplyr pipeline.
Arguments
- data
A tibble containing the compositions to be labeled. The dataframe should contain the columns
legacy
,label
, andindex
.- legacy_col
The name of the column that contains the legacy flag. Default is "legacy".
- label_col
The name of the column that contains the labels. Default is "label".
- index_col
The name of the column that contains the index. Default is "index".