Set of helper functions for downloading some of the most relevant macroeconomic indicators of Spain. Metadata available in bde_ind_db.
Usage
bde_ind_gdp_var(series_label = "GDP_YoY", ...)
bde_ind_unemployment_rate(series_label = "Unemployment_Rate", ...)
bde_ind_euribor_12m_monthly(series_label = "Euribor_12M_Monthly", ...)
bde_ind_euribor_12m_daily(series_label = "Euribor_12M_Daily", ...)
bde_ind_cpi_var(series_label = "Consumer_price_index_YoY", ...)
bde_ind_ibex_monthly(series_label = "IBEX_index_month", ...)
bde_ind_ibex_daily(series_label = "IBEX_index_day", ...)
bde_ind_gdp_quarterly(series_label = "GDP_quarterly_value", ...)
bde_ind_population(series_label = "Population_Spain", ...)Arguments
- series_label
Optional. Character vector or value. Allows specifying a custom label for the series extracted.
- ...
Arguments passed on to
bde_series_loadout_formatWhether the format should be returned as "long" or "wide". Possible values are
"wide"or"long". See Value for details and section Examples.parse_numericLogical. If
TRUEthe columns would be parsed to double (numeric) values. See Note.extract_metadataLogical
TRUE/FALSE. OnTRUEthe output is the metadata of the requested series.parse_datesLogical. If
TRUE, the dates will be parsed usingbde_parse_dates().update_cacheLogical. If
TRUE, the requested file will be updated in thecache_dir.cache_dirA path to a cache directory. The directory can also be set via options with
options(bde_cache_dir = "path/to/dir").verboseLogical
TRUEorFALSE, display information useful for debugging.
Value
A tibble with the required series.
Details
These functions are convenient wrappers around bde_series_load() for
specific series. Use verbose = TRUE, extract_metadata = TRUE to see the
specification and the source.
See also
bde_series_load(), bde_catalog_search()
Other indicators:
bde_ind_db
Examples
# \donttest{
bde_ind_gdp_var()
#> # A tibble: 119 × 2
#> Date GDP_YoY
#> <date> <dbl>
#> 1 1996-03-01 2.46
#> 2 1996-06-01 2.49
#> 3 1996-09-01 2.87
#> 4 1996-12-01 2.61
#> 5 1997-03-01 3.04
#> 6 1997-06-01 3.26
#> 7 1997-09-01 3.55
#> 8 1997-12-01 4.49
#> 9 1998-03-01 4.33
#> 10 1998-06-01 4.53
#> # ℹ 109 more rows
# }
