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 dataframe of quantitative estimate parameters for the capabilities applicable to a given scenario.

Examples

data(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, capabilities, mappings)
#> [[1]] #> [[1]]$min #> [1] NA #> #> [[1]]$mode #> [1] NA #> #> [[1]]$max #> [1] NA #> #> [[1]]$shape #> [1] NA #> #> [[1]]$func #> [1] "mc2d::rpert" #> #> #> [[2]] #> [[2]]$min #> [1] NA #> #> [[2]]$mode #> [1] NA #> #> [[2]]$max #> [1] NA #> #> [[2]]$shape #> [1] NA #> #> [[2]]$func #> [1] "mc2d::rpert" #> #>