event_combo: Check if Combination of Events in calendar

Description Usage Arguments Value Examples

View source: R/event_combo.R

Description

Check if Combination of Events in calendar

Usage

1
event_combo(calendar, event1, n_months, event2)

Arguments

calendar

string(s) of DHS calendar, months in original order (i.e. recent -> older)

event1

code(s) of the earlier/older event(s) of interest

n_months

number of months between events (numerical)

event2

code(s) of the later/recent event(s) of interest

Value

wheter or not each calendar items contain the combination of events

Examples

1
2
3
dat_calendar <- c("3300000BPP", "5000TPP111", "0123005670")
event_combo(calendar = dat_calendar, event1 = "P", n_months = 6, event2 = c(1:9))
event_combo(calendar = dat_calendar, event1 = "P", n_months = 4, event2 = c(1:9))

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