Description Usage Arguments Value Examples
View source: R/calendar_recode.R
Recode Data - DHS Calendar Similar to VLOOKUP in Excel, but by default designed for DHS calendar codes
1 2 3 4 5 6 | calendar_recode(
x,
recodebook = DHScalendR::dhs_calendar_codebook,
code = "Recode",
recoding = "Meaning"
)
|
x |
is a vector of encoded data |
recodebook |
is a data frame containings information about code |
code |
name column of recodebook with the code of x (character) |
recoding |
name column of recodebook with meaning of the code (character) |
recoded vector x
1 2 | events <- c("0","0","P","P","T","A","A", NA, "Wrong_CodeX", "3","3")
calendar_recode(events)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.