Description Usage Format Details Examples
The 'mdmcda::opts' object contains three functions to set, get, and reset options used by the dmcda package. Use 'mdmcda::opts$set' to set options, 'mdmcda::opts$get' to get options, or 'mdmcda::opts$reset' to reset specific or all options to their default values.
1 |
An object of class list
of length 5.
It is normally not necessary to get or set 'mdmcda' options.
The following arguments can be passed:
For 'mdmcda::opts$set', the dots can be used to specify the options to set, in the format 'option = value', for example, 'varViewCols = c("values", "level")'. For 'mdmcda::opts$reset', a list of options to be reset can be passed.
For 'mdmcda::opts$set', the name of the option to set.
For 'mdmcda::opts$get', the default value to return if the option has not been manually specified.
The following options can be set:
The default column name for the decision identifier
The default column name for the decision label
The default column name for the criterion identifier
The default column name for the criterion label
The default column name for the criterion description
The default column name for the parent criterion identifier
The default column name for the alternaive value
The default column name for the alternative label
The default column name for the scenario identifier
The default column name for the scenario label
The default column name for the decision description
The default column name for the label combining a decision and the selected alternative
The default column name for the decision identifier
The column with the scores returned by 'scenario_scores'
The name of the column name indicating whether a criterion is a leaf (without children) or not
The name of the root criterion in the criaria tree
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ### Get the default columns in the variable view
mdmcda::opts$get(varViewCols);
### Set it to a custom version
mdmcda::opts$set(varViewCols = c("values", "level"));
### Check that it worked
mdmcda::opts$get(varViewCols);
### Reset this option to its default value
mdmcda::opts$reset(varViewCols);
### Check that the reset worked, too
mdmcda::opts$get(varViewCols);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.