% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deflator.R
\name{gb_real}
\alias{gb_real}
\title{Convert nominal values to real}
\usage{
gb_real(nominal_values, year, base_year, source = "bundled")
}
\arguments{
\item{nominal_values}{Numeric vector of nominal values.}

\item{year}{Integer scalar or vector matching \code{nominal_values},
giving the year at which each value is expressed in nominal terms.}

\item{base_year}{Integer scalar: the base year to convert to.}

\item{source}{Character. \code{"bundled"} only in v0.1.0.}
}
\value{
A numeric vector of real values, in \code{base_year} prices.
}
\description{
Converts nominal values at year-of-occurrence prices to real values
at a chosen base year, using the bundled GDP deflator.
}
\examples{
gb_real(nominal_values = c(100, 110, 120),
        year = 2020:2022,
        base_year = 2024)
}
\references{
HM Treasury (2022). The Green Book, chapter on real
terms and price-base alignment.
}
\seealso{
\code{\link[=gb_deflator]{gb_deflator()}}, \code{\link[=gb_rebase]{gb_rebase()}}.

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