get_alternativeLabel: Get the alternative labels based on a data frame

Description Usage Arguments Value

View source: R/get_alternativeLabel.R

Description

Get the alternative labels based on a data frame

Usage

1
2
3
4
5
6
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.


Matherion/mdmcda documentation built on Dec. 31, 2020, 3:13 p.m.