Retrieve time series data from the BoE database.
Usage
boe_data(key, start_date, end_date = Sys.Date())
Arguments
- key
(
character()
)
The series keys to query.- start_date
(
character(1)
|Date(1)
)
Start date of the data.- end_date
(
character(1)
|Date(1)
)
End date of the data. Default is today's date.
Value
A data.table::data.table()
with the requested data.
See also
Other data:
bbk_data()
,
bbk_series()
,
bde_data()
,
bdf_codelist()
,
bdf_data()
,
bdf_dataset()
,
ecb_data()
,
onb_data()
,
snb_data()
Examples
# \donttest{
boe_data(c("IUMABEDR", "IUALBEDR"), "2015-01-01")
#> date key value description freq
#> <Date> <char> <num> <char> <char>
#> 1: 2015-01-31 IUMABEDR 0.50 Monthly average of official Bank Rate monthly
#> 2: 2015-02-28 IUMABEDR 0.50 Monthly average of official Bank Rate monthly
#> 3: 2015-03-31 IUMABEDR 0.50 Monthly average of official Bank Rate monthly
#> 4: 2015-04-30 IUMABEDR 0.50 Monthly average of official Bank Rate monthly
#> 5: 2015-05-31 IUMABEDR 0.50 Monthly average of official Bank Rate monthly
#> ---
#> 133: 2020-12-31 IUALBEDR 0.10 End year official Bank Rate annual
#> 134: 2021-12-31 IUALBEDR 0.25 End year official Bank Rate annual
#> 135: 2022-12-31 IUALBEDR 3.50 End year official Bank Rate annual
#> 136: 2023-12-31 IUALBEDR 5.25 End year official Bank Rate annual
#> 137: 2024-12-31 IUALBEDR 4.75 End year official Bank Rate annual
#> seasonal_adjustment type output_in instrument_currency
#> <char> <char> <char> <char>
#> 1: Not seasonally adjusted Interest rate Percent Sterling
#> 2: Not seasonally adjusted Interest rate Percent Sterling
#> 3: Not seasonally adjusted Interest rate Percent Sterling
#> 4: Not seasonally adjusted Interest rate Percent Sterling
#> 5: Not seasonally adjusted Interest rate Percent Sterling
#> ---
#> 133: <NA> Interest rate Percent Sterling
#> 134: <NA> Interest rate Percent Sterling
#> 135: <NA> Interest rate Percent Sterling
#> 136: <NA> Interest rate Percent Sterling
#> 137: <NA> Interest rate Percent Sterling
#> instruments
#> <char>
#> 1: Official Bank Rate
#> 2: Official Bank Rate
#> 3: Official Bank Rate
#> 4: Official Bank Rate
#> 5: Official Bank Rate
#> ---
#> 133: Official Bank Rate
#> 134: Official Bank Rate
#> 135: Official Bank Rate
#> 136: Official Bank Rate
#> 137: Official Bank Rate
# }