Description Usage Arguments Value Examples
View source: R/calendar_subset.R
Subset Months from DHS Calendar
1 | calendar_subset(calendar, interview, starting, ending)
|
calendar |
string(s) of calendar, months in original order (i.e. recent -> older) |
interview |
date of interview (CMC format, numeric) |
starting |
date of first month of interest (CMC format, numeric) |
ending |
date of last month of interest (CMC format, numeric) |
a vector containing the strings of months of interest
1 2 | df <- DHScalendR::dhs_extract[5:9, ]
calendar_subset(calendar = df$VCAL.1, interview = df$V008, starting = 1379, ending = 1385)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.