Quick helper to reformat the data from the mapping file into the mapping file to use with each indicator calculation. T
Arguments
- mappingfile
full path to the xlsx file with the revise variable mapping generated with
fct_var_mapping()
- IndicatorRequirementFile
path to the file where the standard mapping is depending on form version
- thisMeasureLevel
can be
ind
for individual level ormain
for household level
Details
his needs to be done in two steps:
one for ind
for individual level and
one for main
for household level
Examples
mappingfile <- system.file("RMS_CAPI_v2_mapping.xlsx",
package = "IndicatorCalc")
IndicatorRequirementFile <- system.file("RMS_CAPI_v2_mapper.xlsx",
package = "IndicatorCalc")
mappermain <- fct_build_map(mappingfile = mappingfile,
IndicatorRequirementFile = IndicatorRequirementFile,
thisMeasureLevel = "main")
mapperind <- fct_build_map(mappingfile = mappingfile,
IndicatorRequirementFile = IndicatorRequirementFile,
thisMeasureLevel = "ind")