R/encode.R
derive_controls.Rd
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)
Comma-delimited list of capabilities in scope for a scenario.
Dataframe of master list of all qualitative capabilities.
Qualitative mappings dataframe.
A named list of quantitative estimate parameters for the capabilities applicable to a given scenario.
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()