% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{abbreviate_var_name}
\alias{abbreviate_var_name}
\title{Abbreviate variable name}
\usage{
abbreviate_var_name(var_name, is_intercept = FALSE)
}
\arguments{
\item{var_name}{Character string}

\item{is_intercept}{Logical indicating if this variable is the intercept}
}
\value{
Character string
}
\description{
Deterministic abbreviation rules:
\itemize{
\item (Intercept) is preserved
\item Single-token names truncate to 6 characters
\item "_" and "." are treated as separators
\item Two-token names become \verb{token1[1:4] . token2[1:4]}
\item Three-plus-token names become \verb{t1[1:2] . t2[1:2] . t3[1:2]}
}
}
\keyword{internal}
