% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statMatchLCM.R
\name{num_to_fact}
\alias{num_to_fact}
\title{Convert numeric codes back to factor}
\usage{
num_to_fact(x, table)
}
\arguments{
\item{x}{numeric vector}

\item{table}{data.frame with columns level_fact and level_num}
}
\value{
A factor vector:
\describe{
\item{levels}{Defined by \code{table$level_num}.}
\item{labels}{Defined by \code{table$level_fact}.}
}
}
\description{
Restores a factor variable from numeric codes
using a mapping table created by \code{fact_to_num()}.
}
