if (kolada_available()) {
kpi_grp_df <- get_kpi_groups()
# Which KPI groups match the keyword "ekonomi" (economy)?
kpi_grp_df %>% kpi_grp_search("ekonomi")
# Which KPI groups contain KPIs matching the keyword "arbete" (work/labour)?
kpi_grp_df %>%
kpi_grp_unnest() %>%
kpi_search("arbete") %>%
dplyr::count(group_title, sort = TRUE)
}
Run the code above in your browser using DataLab