cleanMeasureCode {EpiReport} | R Documentation |
Clean the MeasureCode variable
Description
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)
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:-
CONFIRMED.LABCONFIRMED.AGE_GENDER.RATE
-
TYPHOID.AGE_GENDER.RATE
-
ACCUTE.AGE_GENDER.RATE
-
Value
cleaned vector variable
See Also
Examples
x <- EpiReport::SALM2016
x$MeasureCode <- cleanMeasureCode(x$MeasureCode)