% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_table1.R
\name{get_var_types}
\alias{get_var_types}
\title{Classify variables as continuous, binary, or categorical}
\usage{
get_var_types(df_list, max_cat_levels = 12)
}
\arguments{
\item{df_list}{A data frame or list of data frames to inspect.}

\item{max_cat_levels}{Integer. Numeric variables with more than this many
unique values are classified as continuous (default 12).}
}
\value{
A named list with elements:
\describe{
\item{cat_vars}{Sorted character vector of categorical variable names.}
\item{cat_vars_w_levels}{Named list mapping each categorical variable to
its sorted unique levels.}
\item{binary_vars}{Sorted character vector of binary (0/1) variable names.}
\item{cont_vars}{Sorted character vector of continuous variable names.}
}
}
\description{
Inspects one or more data frames to determine the type of each variable
using a combination of pattern-based rules and data-driven heuristics.
}
\keyword{#}
\keyword{-----------------------------}
\keyword{internal}
