lookup_interval | R Documentation |
Sometimes we need to lookup a value at a particular time based on a date range in another dataset. This function provides a wrapper to data.table to make this quick and easy.
lookup_interval(lookup_date, interval_data, variable)
lookup_date |
A column of dated data. |
interval_data |
A dataset including columns called "start" and "end". |
variable |
The variable to select values from in the interval_data. |
A tibble of data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.