Get the alternative labels based on a data frame

get_alternativeLabel(
  x,
  alternativeLabels,
  decisionId_col = mdmcda::opts$get("decisionId_col"),
  alternativeValue_col = mdmcda::opts$get("alternativeValue_col")
)

Arguments

x

The data frame with a column with the decision identifier and the alternative value.

alternativeLabels

The object with the alternative labels (a named list of named lists).

decisionId_colalternativeValue_col

The names of the columns of the decision identifier and the alternative value in data frame `x`.

Value

A vector with alternative labels for the alternative values for each decision.