% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table2_utils.R
\name{process_table_for_flextable}
\alias{process_table_for_flextable}
\title{Core flextable processing function}
\usage{
process_table_for_flextable(
  table,
  caption = NULL,
  font_size = 10,
  font_family = "Arial",
  format_headers = TRUE,
  bold_significant = TRUE,
  p_threshold = 0.05,
  indent_groups = FALSE,
  condense_table = FALSE,
  condense_quantitative = FALSE,
  zebra_stripes = FALSE,
  dark_header = FALSE,
  bold_variables = TRUE,
  paper = "letter",
  orientation = "portrait",
  width = NULL,
  align = NULL
)
}
\arguments{
\item{table}{Data.frame or data.table to process.}

\item{caption}{Optional character string for table caption.}

\item{font_size}{Numeric font size in points.}

\item{font_family}{Character string font family name.}

\item{format_headers}{Logical whether to format headers.}

\item{bold_significant}{Logical whether to bold significant \emph{p}-values.}

\item{p_threshold}{Numeric \emph{p}-value threshold for significance.}

\item{indent_groups}{Logical whether to indent group levels.}

\item{condense_table}{Logical whether to condense all variable types.}

\item{condense_quantitative}{Logical whether to condense only continuous/survival.}

\item{zebra_stripes}{Logical whether to apply alternating row shading.}

\item{dark_header}{Logical whether to use dark header style.}

\item{bold_variables}{Logical whether to bold variable names (non-indented rows).}

\item{paper}{Character string paper size.}

\item{orientation}{Character string page orientation.}

\item{width}{Optional numeric table width in inches.}

\item{align}{Optional alignment specification.}
}
\value{
List with ft (\pkg{flextable} object) and caption components.
}
\description{
Central processing function for creating \pkg{flextable} objects from data tables.
Handles N row extraction, condensing, indentation, zebra stripes, formatting,
and styling. Used by table2docx, table2pptx, and table2rtf.
}
\keyword{internal}
