% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deflator.R
\name{gb_deflator}
\alias{gb_deflator}
\title{GDP deflator factor between two years}
\usage{
gb_deflator(from, to, source = "bundled")
}
\arguments{
\item{from}{Integer year of the input value.}

\item{to}{Integer year to express the value in.}

\item{source}{Character. \code{"bundled"} uses the CSV shipped in
\verb{inst/extdata/}. Future versions will accept \code{"inflateR"} to use
the live ONS series via the \code{inflateR} package.}
}
\value{
A numeric scalar: the deflator factor.
}
\description{
Returns the multiplicative factor to convert a value expressed in
year \code{from} prices to year \code{to} prices, using the bundled UK GDP
deflator at market prices (ONS series). Multiply a nominal value
from year \code{from} by this factor to express it in year \code{to}.
}
\examples{
gb_deflator(from = 2020, to = 2024)
}
\references{
Office for National Statistics. GDP deflator at market
prices (series YBGB), updated quarterly. HM Treasury publishes
the deflator series alongside the OBR forecast.
}
\seealso{
\code{\link[=gb_real]{gb_real()}}, \code{\link[=gb_rebase]{gb_rebase()}}.

Other deflator: 
\code{\link{gb_real}()},
\code{\link{gb_rebase}()}
}
\concept{deflator}
