% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statMatchLCM.R
\name{fact_to_num}
\alias{fact_to_num}
\title{Convert factor/character variables to numeric with mapping}
\usage{
fact_to_num(df)
}
\arguments{
\item{df}{data.frame with factor or character columns}
}
\value{
A list with:
\describe{
\item{data}{data.frame with numeric-coded variables}
\item{levels}{list of factor levels}
\item{tables}{list of mapping tables (factor → numeric)}
}
}
\description{
Converts all factor or character columns in a data.frame
to numeric codes and stores the mapping tables.
}
\examples{
data(datA)
fact_to_num(datA)
}
