% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table_builder.R
\name{.merge_panels}
\alias{.merge_panels}
\title{Merge by_sex and by_age results into a single wide data frame}
\usage{
.merge_panels(
  total_df,
  by_sex_df,
  by_age_df,
  is_pct = TRUE,
  by_sex_age_df = NULL
)
}
\arguments{
\item{total_df}{Total estimate (1-row data frame).}

\item{by_sex_df}{By-sex estimates (with \code{sex} column).}

\item{by_age_df}{By-age estimates (with \code{age_group} column).}

\item{is_pct}{Whether values are percentages.}
}
\value{
A data frame with columns: Age Group, Men, Women, Both Sexes.
}
\description{
Produces the standard 3-panel layout: Age Group | Men | Women | Both Sexes.
}
\keyword{internal}
