% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/public_finances.R
\name{get_receipts}
\alias{get_receipts}
\title{Get public sector receipts by tax type}
\usage{
get_receipts(refresh = FALSE)
}
\arguments{
\item{refresh}{Logical. If \code{TRUE}, re-download even if a cached copy exists.
Defaults to \code{FALSE}.}
}
\value{
An \code{obr_tbl} with the standard v0.4.0 schema (columns:
\code{period}, \code{period_type}, \code{series}, \code{metric_type}, \code{value}, \code{unit}).
\code{series} is the tax or receipt category, \code{metric_type} is \code{"level"},
\code{unit} is \code{"gbp_bn"}. See \code{\link[=get_public_finances]{get_public_finances()}} for full column docs.
}
\description{
Downloads (and caches) the OBR Public Finances Databank and returns
public sector current receipts broken down by individual tax type,
in tidy long format. Coverage begins in 1999-00.
}
\examples{
\donttest{
op <- options(obr.cache_dir = tempdir())
try({
  receipts <- get_receipts()
  receipts[grepl("income tax", receipts$series, ignore.case = TRUE), ]
})
options(op)
}

}
\seealso{
Other public finances: 
\code{\link{get_expenditure}()},
\code{\link{get_psnb}()},
\code{\link{get_psnd}()},
\code{\link{get_public_finances}()}
}
\concept{public finances}
