bde_catalog_search: Search BdE catalogs

View source: R/catalogs.R

bde_catalog_searchR Documentation

Description

Search for keywords on the time-series catalogs.

Usage

bde_catalog_search(pattern, ...)

Arguments

pattern

regex pattern to search. See Details and Examples.

...

Arguments passed on to bde_catalog_load

catalog

A single value indicating the catalogs to be updated or "ALL" as a shorthand. See Details.

parse_dates

Logical. If TRUE, the dates will be parsed using bde_parse_dates().

update_cache

Logical. If TRUE, the requested file will be updated in the cache_dir.

cache_dir

A path to a cache directory. The directory can also be set via options with options(bde_cache_dir = "path/to/dir").

verbose

Logical TRUE or FALSE, display information useful for debugging.

Details

Note: BdE files are currently provided only in Spanish. Therefore, search terms should be provided in Spanish to obtain search results.

This function uses base::grep() function for finding matches on the catalogs. You can pass regular expressions to broaden the search.

Value

A tibble object with the results of the query.

See Also

bde_catalog_load(), base::regex

Other catalog: bde_catalog_load(), bde_catalog_update()

Examples



# Simple search (needs to be in Spanish)
# !! PIB [es] == GDP [en]

bde_catalog_search("PIB")

# More complex - Single
bde_catalog_search("Francia(.*)PIB")

# Even more complex - Double
bde_catalog_search("Francia(.*)PIB|Italia(.*)PIB|Alemania(.*)PIB")



tidyBdE documentation built on Jan. 14, 2026, 1:07 a.m.