% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/code.R
\name{wid_encode}
\alias{wid_encode}
\title{Build a WID variable code from its components}
\usage{
wid_encode(series_type, concept = NULL, age = NULL, pop = NULL)
}
\arguments{
\item{series_type}{1-letter series type, or a list from \code{\link{wid_decode}}.}

\item{concept}{5-6 letter concept code.}

\item{age}{3-digit age code or \code{NULL}.}

\item{pop}{1-letter population code or \code{NULL}.}
}
\value{
A character string of the form
\code{<type><concept>[age][pop]}.
}
\description{
Build a WID variable code from its components
}
\examples{
wid_encode("s", "ptinc", "992", "j")   # "sptinc992j"
wid_encode("m", "nninc")               # "mnninc"
wid_encode(wid_decode("sptinc992j"))   # round-trip
}
