susr_dimension_values.Rd
This function queries the dimension endpoint:
https://data.statistics.sk/api/v2/dimension/<table_code>/<dimension_code>?lang=<lang>
for a given table code and dimension code, returning a tibble with all possible
values (element codes and labels) for that dimension.
susr_dimension_values(table_code, dimension_code, lang = "en")
A tibble with columns:
The provided dimension code (e.g. "as1001rs_rok").
A short label for the dimension (if available).
A more descriptive note for the dimension (if available).
Index of each element.
Each possible value code (e.g. "2016", "SK021", etc.).
A descriptive label for each element code (if available).
if (FALSE) { # \dontrun{
# For table code "as1001rs" and dimension "as1001rs_rok":
dim_vals <- susr_dimension_values("as1001rs", "as1001rs_rok")
head(dim_vals)
} # }