Skip to contents

Search measures by text

Usage

measure_search(measure_df, query, column = NULL)

Arguments

measure_df

A tibble returned by get_measures().

query

Character vector of search terms (combined with OR).

column

Column names to search. NULL searches name, label, and description.

Value

A filtered tibble.

Examples

# \donttest{
if (trafa_available()) {
  get_measures("t10011") |> measure_search("trafik")
}# }
#> # A tibble: 1 × 10
#>   product name    label description    id unique_id option active_from data_type
#>   <chr>   <chr>   <chr> <chr>       <int> <chr>     <lgl>  <chr>       <chr>    
#> 1 t10011  itrfsl… Anta… Avser i sl…  4183 Ditrfslut TRUE   0001-01-01… String   
#> # ℹ 1 more variable: parent_name <chr>