Clean the MeasureCode variable and replace the specific codes with the generic ones
(e.g. ACCUTE.AGE_GENDER.RATE will be replaced by CONFIRMED.AGE_GENDER.RATE)
Usage
cleanMeasureCode(var)
Value
cleaned vector variable
Arguments
var
character string vector variable, variable to clean
Details
ALL.COUNT will replace the following codes:
ALL.DOMESTIC.COUNT
AGELT1.COUNT
ALL.RATE will replace the following codes:
ALL.DOMESTIC.AGE.RATE
ALL.AGE.RATE will replace the following codes:
ALL.DOMESTIC.AGE.RATE
ALL.AGESTANDARDISED.RATE will replace the following codes:
ALL.DOMESTIC.AGESTANDARDISED.RATE
CONFIRMED.COUNT will replace the following codes:
ALL.LABCONFIRMED.COUNT
CONFIRMED.LABCONFIRMED.COUNT
CONFIRMED.AGELT1.COUNT
TYPHOID.COUNT
CONFIRMED.RATE will replace the following codes:
CONFIRMED.LABCONFIRMED.RATE
CONFIRMED.AGELT1.RATE
TYPHOID.RATE
CONFIRMED.AGESTANDARDISED.RATE will replace the following codes:
CONFIRMED.LABCONFIRMED.AGESTANDARDISED.RATE
CONFIRMED.AGE_GENDER.RATE will replace the following codes: