Skip to contents

Parse API meta to give the time periods

Usage

parse_meta_time_periods(api_meta_time_periods, verbose = FALSE)

Arguments

api_meta_time_periods

Time periods information provided by the API output

verbose

Run with additional contextual messaging. Logical, default = FALSE

Value

Data frame containing location item codes matched

Examples

get_meta_response(example_id())$timePeriods |>
  parse_meta_time_periods()
#>   code    period   label
#> 1   AY 2021/2022 2021/22
#> 2   AY 2022/2023 2022/23
#> 3   AY 2023/2024 2023/24