Skip to contents

Public Finances Databank

Outturn data on borrowing, debt, receipts, and expenditure since 1946.

get_public_finances()
Get all Public Finances Databank aggregates
get_psnb()
Get Public Sector Net Borrowing (PSNB)
get_psnd()
Get Public Sector Net Debt (PSND)
get_expenditure()
Get Total Managed Expenditure
get_receipts()
Get public sector receipts by tax type

Historical Official Forecasts

Every OBR forecast since 2010 for key fiscal and economic variables.

list_forecast_series()
List available forecast series
get_forecasts()
Get OBR forecast history for a fiscal series
obr_forecast_panel()
Build a wide real-time panel of OBR forecasts
obr_compare_vintages()
Compare two EFO vintages
obr_actual_vs_forecast()
Pair OBR forecasts with PFD outturn
get_forecast_revisions()
Get OBR forecast revisions

Economic and Fiscal Outlook

Five-year projections from the latest Budget. The generic get_efo_table() plus catalogue exposes 35+ detailed-forecast tables; the headline wrappers below remain as convenience entry points.

get_efo_table()
Get any EFO detailed-forecast table by id
obr_efo_catalogue()
List the EFO detailed-forecast tables this package can fetch
get_efo_fiscal()
Get EFO fiscal projections (net borrowing components)
get_efo_economy()
Get EFO economy projections
list_efo_economy_measures()
List available EFO economy measures

Incapacity benefit spending and caseloads.

get_welfare_spending()
Get working-age welfare spending
get_incapacity_spending()
Get incapacity benefits spending by type
get_incapacity_caseloads()
Get incapacity benefit caseloads

Fiscal Risks and Sustainability Report

50-year state pension projections.

get_pension_projections()
Get long-run state pension spending projections

Policy Measures Database

Every UK fiscal-event-scored tax measure since 1970 and spending measure since 2010.

get_policy_measures()
Get OBR policy measures by fiscal event
policy_measures_summary()
Summarise policy measures by fiscal event

Fiscal rules

Charter for Budget Responsibility rule definitions.

obr_fiscal_rules()
Get the current UK fiscal rules

Vintage layer

Pin analyses to a specific OBR Economic and Fiscal Outlook for reproducibility.

obr_efo_vintages()
List known OBR Economic and Fiscal Outlook vintages
obr_as_of()
Find the OBR publication that was current on a given date
obr_pin()
Pin a session-wide OBR EFO vintage
obr_unpin()
Clear the pinned OBR EFO vintage
obr_pinned()
Show the currently pinned OBR EFO vintage

Provenance

Inspect and manage the source metadata attached to every returned object.

obr_provenance()
Extract OBR provenance metadata
print(<obr_tbl>)
Print an obr_tbl
summary(<obr_tbl>)
Summary of an obr_tbl
`[`(<obr_tbl>)
Subset an obr_tbl, preserving provenance
as.data.frame(<obr_tbl>)
Coerce an obr_tbl to a plain data.frame

Cache management

Manage locally cached OBR data files.

clear_cache()
Clear cached OBR files

Package

obr obr-package
obr: Access 'Office for Budget Responsibility' Data