czso_filter_catalogue {czso}R Documentation

Filter the catalogue using a set of keywords

Description

Filter the catalogue using a set of keywords

Usage

czso_filter_catalogue(catalogue, search_terms)

Arguments

catalogue

a catalogue as returned by czso_get_catalogue()

search_terms

#' A regex pattern (incl. plain text), or a vector of regex patterns, to filter the catalogue by. A case-insensitive filter is performed on the title, description and keywords. The search returns only catalogue entries where all the patterns are matched anywhere within the title, description or keywords.

Value

A tibble with the filtered catalogue.

See Also

Other Core workflow: czso_get_catalogue(), czso_get_codelist(), czso_get_table()

Examples

ctlg <- czso_get_catalogue()
czso_filter_catalogue(ctlg, search_terms = c("kraj", "me?zd"))
czso_filter_catalogue(ctlg, search_terms = c("úmrt", "orp"))
czso_filter_catalogue(ctlg, search_terms = c("kraj", "vazba", "orp"))
czso_filter_catalogue(ctlg, search_terms = c("ISCO", "číselník"))
czso_filter_catalogue(ctlg, search_terms = c("zaměstnání", "číselník"))

[Package czso version 0.4.2 Index]