Description Usage Arguments Value Examples
Count number of occurences of the event
1 | event_count(calendar, event, sequences = TRUE)
|
calendar |
string(s) of DHS calendar, months in original order (i.e. recent -> older) |
event |
code(s) of event of interest (can take regex) |
sequences |
look for sequence of event - if FALSE individual events [default: TRUE] |
number of time the event occured in the calendar string
1 2 3 | dat_calendar <- c("3300000BPP", "5000TPP111", "0123005670")
event_count(dat_calendar, 0)
event_count(dat_calendar, "0", sequences = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.