Returns all available time periods
Details
CVD Prevent API documentation: Time period
Examples
# 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)
#> # A tibble: 4 × 2
#> TimePeriodID TimePeriodName
#> <int> <chr>
#> 1 20 To September 2024
#> 2 18 To June 2024
#> 3 17 To March 2024
#> 4 15 To December 2023