Description Usage Arguments Value Examples
Get location event in a calendar variable
1 2 3 4 5 6 7 8 | event_locate(
calendar,
event,
sequences = TRUE,
recent_oldest = "recent",
start_end = "start",
interview = 0
)
|
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] |
recent_oldest |
return location most recent or the oldest event in the calendar [default: "recent"] |
start_end |
return location of the start or the end of the event [default: "start"] |
interview |
variable of the date of interview [default: 0] |
location of the event in the string (recent or older AND start or end)
1 2 3 4 5 6 7 | dat_calendar <- c("3300000BPP", "5000TPP111", "0123005670")
event_locate(dat_calendar, "P")
event_locate(dat_calendar, "P", sequences = FALSE)
event_locate(dat_calendar, 0)
event_locate(dat_calendar, 0, recent_oldest = "oldest")
event_locate(dat_calendar, 0, recent_oldest = "oldest", start_end = "end")
event_locate(dat_calendar, 0, interview = c(0, 10, 100))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.