kpi_search | R Documentation |
Search a Kolada KPI metadata table. Only keep rows that
contain the search query. Matches against all columns or columns named with
the column
parameter. For more precise matching, please use
dplyr::filter
.
kpi_search(kpi_df, query, column = NULL)
kpi_df |
A Kolada KPI metadata table, e.g. as created by
|
query |
A search term or a vector of search terms to filter by. Case insensitive. |
column |
(Optional) A string or character vector with the names of
columns in which to search for |
A Kolada KPI metadata table
# Search for a single search term in a KPI table kpis <- get_kpi(id = c("N11002", "N11003", "N11004", "N11005")) kpi_filter <- kpi_search(kpis, "kostnad") # Add keywords to a KPI table and search for multiple terms among # the keywords kpi_filter <- get_kpi(id = c("N11002", "N11003", "N11004", "N11005")) %>% kpi_bind_keywords(n = 3) %>% kpi_search( query = c("nettokostnad", "öppen"), column = c("keyword_1", "keyword_2", "keyword_3") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.