% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/code.R
\name{wid_decode}
\alias{wid_decode}
\title{Parse a WID variable code into its components}
\usage{
wid_decode(x, strict = TRUE)
}
\arguments{
\item{x}{Character string, e.g. \code{"sptinc992j"}.}

\item{strict}{\code{TRUE} (default) stops on error; \code{FALSE} warns and returns \code{NULL}.}
}
\value{
Named list with elements \code{series_type} (character),
\code{concept} (character), \code{age} (character or \code{NULL}),
and \code{pop} (character or \code{NULL}).
}
\description{
Parse a WID variable code into its components
}
\examples{
wid_decode("sptinc992j")
wid_decode("mnninc")        # no age or pop
}
