# Download data for KPIs for Gross Regional Product ("BRP" in Swedish)
# for three municipalities
if (kolada_available()) {
# If you already know the ID numbers you are looking for,
# you can use these directly as argments.
# Otherwise, use the get_\*() functions in combination with \*_search()
# functions to find good parameter values.
grp_data <- get_values(
kpi = c("N03700", "N03701"),
municipality = c("0180", "1480", "1280")
)
# To download OU data instead of Municipality data, set the parameter
# "unit_type" to "ou".
ou_data <- get_values(
kpi = "N15033",
ou = "V15E144001101",
unit_type = "ou"
)
}
Run the code above in your browser using DataLab