Description Usage Arguments Value Examples
View source: R/05-recode_anc.R
Function to recode antenatal care indicators for the Myanmar MCCT Programme Evaluation Survey
1 2 3 4 5 | recode_anc(
df,
status = NULL,
core.columns = c("KEY", "geo_rural", "geo_state", "geo_villward", "sample_component")
)
|
df |
A data.frame collected for the Myanmar MCCT Programme Evaluation Study containing antenatal care data |
status |
A character value indicating whether to recode data of currently pregnant women ("current") or previously pregnant women ("past") |
core.columns |
A vector of variable names to include in resulting |
A data.frame of recoded antenatal care indicators
1 2 3 4 5 6 7 | ## Recode anc indicators for currently pregnant women
x <- create_anc(df = anc1, x = hh, y = hhMembers, status = "current")
recode_anc(df = x, status = "current")
## Recode anc indicators for non-pregnant women
x <- create_anc(df = anc2, x = hh, y = hhMembers, status = "past")
recode_anc(df = x, status = "past")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.