View source: R/cvd_api_functions.R
cvd_time_period_list | R Documentation |
Returns all available time periods
cvd_time_period_list(indicator_type_id)
indicator_type_id |
integer - Indicator type ID, e.g. standard or outcome indicator type. If passed will show time periods containing data of the given type (optional) |
CVD Prevent API documentation: Time period
Tibble of time period details
cvd_indicator_types()
, cvd_time_period_system_levels()
# NB, the following examples are not tested because they take longer than
# expected to return the results
# get a tibble of all periods
cvd_time_periods <- cvd_time_period_list()
# filter for the latest four periods
cvd_time_period_list() |>
dplyr::filter(IndicatorTypeName == 'Standard') |>
dplyr::slice_max(order_by = TimePeriodID, n = 4) |>
dplyr::select(TimePeriodID, TimePeriodName)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.