Clean the MeasureCode variable
cleanMeasureCode.RdClean 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)
Details
ALL.COUNTwill replace the following codes:ALL.DOMESTIC.COUNTAGELT1.COUNT
ALL.RATEwill replace the following codes:ALL.DOMESTIC.AGE.RATE
ALL.AGE.RATEwill replace the following codes:ALL.DOMESTIC.AGE.RATE
ALL.AGESTANDARDISED.RATEwill replace the following codes:ALL.DOMESTIC.AGESTANDARDISED.RATE
CONFIRMED.COUNTwill replace the following codes:ALL.LABCONFIRMED.COUNTCONFIRMED.LABCONFIRMED.COUNTCONFIRMED.AGELT1.COUNTTYPHOID.COUNT
CONFIRMED.RATEwill replace the following codes:CONFIRMED.LABCONFIRMED.RATECONFIRMED.AGELT1.RATETYPHOID.RATE
CONFIRMED.AGESTANDARDISED.RATEwill replace the following codes:CONFIRMED.LABCONFIRMED.AGESTANDARDISED.RATE
CONFIRMED.AGE_GENDER.RATEwill replace the following codes:CONFIRMED.LABCONFIRMED.AGE_GENDER.RATETYPHOID.AGE_GENDER.RATEACCUTE.AGE_GENDER.RATE
Examples
x <- EpiReport::SALM2016
x$MeasureCode <- cleanMeasureCode(x$MeasureCode)