Skip to contents

Fetch data from the Bank of England (BoE) Interactive Statistical Database

Usage

boe_data(id, start_date, end_date = Sys.Date())

Arguments

id

(character(1)) BoE series codes.

start_date

(character(1) | Date(1)) start date of the time series.

end_date

(character(1) | Date(1)) end date of the time series.

Value

A data.table::data.table() with the requested data.

See also

Other data: bbk_data(), bbk_series(), ecb_data(), snb_data()

Examples

# \donttest{
boe_data(c("IUMABEDR", "IUALBEDR"), "2015-01-01")
#>            date       id value                                  desc    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
#>  ---                                                                        
#> 132: 2020-12-31 IUALBEDR  0.10           End year official Bank Rate  annual
#> 133: 2021-12-31 IUALBEDR  0.25           End year official Bank Rate  annual
#> 134: 2022-12-31 IUALBEDR  3.50           End year official Bank Rate  annual
#> 135: 2023-12-31 IUALBEDR  5.25           End year official Bank Rate  annual
#> 136: 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
#>  ---                                                                    
#> 132:                    <NA> 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
#>             instruments
#>                  <char>
#>   1: Official Bank Rate
#>   2: Official Bank Rate
#>   3: Official Bank Rate
#>   4: Official Bank Rate
#>   5: Official Bank Rate
#>  ---                   
#> 132: Official Bank Rate
#> 133: Official Bank Rate
#> 134: Official Bank Rate
#> 135: Official Bank Rate
#> 136: Official Bank Rate
# }