View source: R/search_eurostat_dsd.R
search_eurostat_dsd | R Documentation |
Search the Data Structure Definition (DSD) of a Eurostat dataset for a given pattern. It returns
the rows where the pattern appears in the code and name column of the output of the get_eurostat_dsd
function.
search_eurostat_dsd(pattern, dsd = NULL, name = TRUE, exact_match = FALSE, ...)
pattern |
a character string or a vector of character string. |
dsd |
a table containing Data Structure Definition (DSD) of a Eurostat dataset which can be retreived by the |
name |
a boolean with the default value |
exact_match |
a boolean with the default value |
... |
additional arguments to the |
The function returns the line(s) where the searched pattern appears in the code or in the name column.
If the pattern found then the function returns a data.frame with the 4 columns:
pattern | The pattern which was searched |
concept | The name of the concepts in the data structure |
code | The list of codes where the pattern was found, or the code of a name where the pattern appears |
name | The name/description of the code where the pattern found, or the name of the code where the pattern appears |
Otherwise returns the value NULL
.
get_eurostat_dsd
, create_filter_table
, search_eurostat_toc
if (!(grepl("amzn|-aws|-azure ",Sys.info()['release']))) options(timeout=2)
dsd_example<-get_eurostat_dsd("nama_10_gdp",verbose=TRUE)
search_eurostat_dsd("EU",dsd_example)
search_eurostat_dsd("EU",dsd_example,ignore.case=TRUE)
search_eurostat_dsd("EU27_2019",dsd_example,name=FALSE)
search_eurostat_dsd("EU27_2019",dsd_example,exact_match=TRUE)
options(timeout=60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.