kpi_grp_unnest {rKolada} | R Documentation |
Create a KPI table from a Kolada KPI Group metadata table
Description
KPI groups are a convenient way to discover sets of KPIs that can be used to
highlight different aspects of a policy area. A practical workflow for
discovering such sets can be to search through KPI Group metadata using
kpi_grp_search
to search for keywords and
kpi_grp_describe
to inspect contents of KPI groups. Once you
have created a KPI group table that has been narrowed down to the group/s you
are looking for, kpi_grp_unnest
is used to create a KPI
metadata table for further processing.
Usage
kpi_grp_unnest(kpi_grp_df)
Arguments
kpi_grp_df |
A Kolada KPI Group metadata table, as created by e.g.
|
Value
A Kolada KPI metadata table
Examples
if (kolada_available()) {
# Download KPI Group metadata
kpi_grp_df <- get_kpi_groups()
# Create a KPI metadata table from KPI groups matching the term
# "utbidning" (education)
kpi_grp_df %>%
kpi_grp_search("utbildning") %>%
kpi_grp_unnest()
}
[Package rKolada version 0.2.3 Index]