Define a tibble period variable (in days)
1 2 3 4 | define_var_period(event_start_tibble, event_stop_tibble, event_start_var,
event_stop_var, id, period_name, exclusions = list_holidays_and_weekends(),
period_target = NA, overwrite_negative = TRUE,
jitter = Sys.getenv("OLIVER_REPLICA_JITTER"))
|
event_start_tibble |
A tibble with a date column representing the start of a period and |
event_stop_tibble |
A tibble with a date column representing the stop of a period and |
event_start_var |
The name of the date column in |
event_stop_var |
The name of the date column in |
period_name |
The desired name for the period column to be created in the new tibble. |
exclusions |
A vector of |
period_target |
A numeric value to serve as a threshold value. If provided, a second tibble will be calculated indicating whether or not the period value is less than or equal to the threshold value. Defaults is |
overwrite_negative |
A binary value indicating whether or not negative interval values should be set to |
population_member_id |
A unique identifier for each 'member' of the population of interest. Must be present in both tibbles. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.