Skip to contents

The API uses unique IDs (sqids) to identify each indicator column. This function parses those into the data creators' column names based on the meta data stored on the API for the data set.

Usage

parse_sqids_indicators(indicators, meta, verbose = FALSE)

Arguments

indicators

A set of indicator columns as taken from a data set downloaded from the API

meta

Meta data for the data set as provided by get_meta()

verbose

Run in verbose mode with debugging messages

Value

Data frame

Examples

example_data_raw(group = "attendance") |>
  magrittr::use_series("values") |>
  parse_sqids_indicators(get_meta(example_id(group = "attendance")))
#>    session_count
#> 1            438
#> 2             22
#> 3            460
#> 4             78
#> 5             50
#> 6             28
#> 7              9
#> 8            538
#> 9            214
#> 10           219
#> 11           433
#> 12             5
#> 13            24
#> 14             6
#> 15             0
#> 16             0
#> 17             0
#> 18            14
#> 19             0
#> 20             6
#> 21            15
#> 22             0
#> 23             0
#> 24             7
#> 25             0
#> 26             8
#> 27             4
#> 28            16
#> 29             0
#> 30             0
#> 31             0
#> 32             0