bde_catalog_search {tidyBdE} | R Documentation |
Search BdE catalogs
Description
Search for keywords on the time-series catalogs.
Usage
bde_catalog_search(pattern, ...)
Arguments
pattern |
|
... |
Arguments passed on to
|
Details
Note that BdE files are only provided in Spanish, for the time being. Therefore search terms should be provided in Spanish as well in order to get 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")
# Search a sequential code: Exact match
# Note that this series (sequential code) appears on several tables
bde_catalog_search("^3779313$")