Skip to contents

Parse API meta to give the filter item codes

Usage

parse_meta_filter_item_ids(api_meta_filters, verbose = FALSE)

Arguments

api_meta_filters

Filter information provided by the API output

verbose

Run with additional contextual messaging. Logical, default = FALSE

Value

Data frame containing filter item codes matched to filter item labels and col_name

Examples

get_meta_response(example_id())$filters |>
  parse_meta_filter_item_ids()
#>   col_id        item_label item_id default_item
#> 1  arLPb   Primary schools   VN5XE           NA
#> 2  arLPb Secondary schools   PEebW           NA
#> 3  arLPb   Special schools   1Ti3Z           NA
#> 4  arLPb             Total   dt0Zw         TRUE