read_labels_from_xl.Rd
These function reads labels or descriptions from an Excel file and returns them as a named vector (except when reading alternative labels; see Details).
read_labels_from_xl(file, idCol, labelCol) read_criterionLabels_from_xl(file) read_decisionLabels_from_xl(file) read_decisionDescriptions_from_xl(file) read_scenarioLabels_from_xl(file) read_alternativeLabels_from_xl(file)
file | The filename. |
---|---|
idCol, labelCol | For `read_labels_from_xl()`, the name of the columns with the identifiers and the labels. |
A named vector, unless alternative labels are read, in which case a named nested list is returned. Each list element is named with a decision identifiers, and consist of a named list, where each element is an alternative label, and each name the corresponding alternative value.
The `read_labels_from_xl()` function is the underlying function; users typically don't interact with this function, unless they specified custom column names.