% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/number_utils.R
\name{format_categorical_stat}
\alias{format_categorical_stat}
\title{Format a categorical statistic for display}
\usage{
format_categorical_stat(n, total, stat_type, marks)
}
\arguments{
\item{n}{Integer count for the category.}

\item{total}{Integer total count for percentage calculation.}

\item{stat_type}{Character string: \code{"n"}, \code{"n_percent"}, or
\code{"percent"}.}

\item{marks}{List with \code{big.mark} and \code{decimal.mark} as returned
by \code{\link{resolve_number_marks}}.}
}
\value{
Character string with the formatted statistic.
}
\description{
Converts frequency counts into formatted display strings following
standard conventions (n, n (\%), \% only) with locale-aware decimal marks.
}
\keyword{internal}
