calendar_subset: Subset Months from DHS Calendar

Description Usage Arguments Value Examples

View source: R/calendar_subset.R

Description

Subset Months from DHS Calendar

Usage

1
calendar_subset(calendar, interview, starting, ending)

Arguments

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)

Value

a vector containing the strings of months of interest

Examples

1
2
df <- DHScalendR::dhs_extract[5:9, ]
calendar_subset(calendar = df$VCAL.1, interview = df$V008, starting = 1379, ending = 1385)

trottieralex/DHScalendR documentation built on March 12, 2020, 3:05 a.m.