GetParamInfoFromAdjustSpec {hivPlatform} | R Documentation |
Extract parameters from an adjustment specification. Values are provided as a list.
GetParamInfoFromAdjustSpec(paramSpecs, infoType = "value")
paramSpecs |
List of parameter specifications. Required. |
infoType |
Type of information to extract from the parameter specification. Optional. Default = "value". |
List of parameters of shape [paramName]
= [paramValue]
paramSpecs <- list( nimp = list( label = "Number of imputations", input = "numeric", value = 2 ) ) GetParamInfoFromAdjustSpec(paramSpecs) # $nimp # [1] 2 GetParamInfoFromAdjustSpec(paramSpecs, infoType = "label") GetParamInfoFromAdjustSpec(paramSpecs, infoType = "input")