Description Usage Arguments Details Value See Also Examples
View source: R/internal_functions.R
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
)
1 |
var |
character string vector variable, variable to clean |
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
cleaned vector variable
1 2 | x <- EpiReport::SALM2016
x$MeasureCode <- cleanMeasureCode(x$MeasureCode)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.