Given a comma-separated list of control IDs in a scenario, identify the qualitative rankings associated with each scenario, convert to their quantitative parameters, and return a dataframe of the set of parameters.

derive_controls(capability_ids, capabilities, mappings)

Arguments

capability_ids

Comma-delimited list of capabilities in scope for a scenario.

capabilities

Dataframe of master list of all qualitative capabilities.

mappings

Qualitative mappings dataframe.

Value

A named list of quantitative estimate parameters for the capabilities applicable to a given scenario.

Examples

data(mc_capabilities)
capability_ids <- c("1, 3")
mappings <- data.frame(type = "diff", label = "1 - Immature", l = 0, ml = 2, h = 10,
                       conf = 3, stringsAsFactors = FALSE)
derive_controls(capability_ids, mc_capabilities, mappings)
#> named list()