This function generates a "Table One", a descriptive summary table frequently used in clinicopathological research manuscripts. It supports multiple output styles for flexible formatting.
Arguments
- data
The input data as a data frame.
- vars
A set of variable names from
data
to include in the Table One. Supports numeric, ordinal, and categorical variables.- sty
Specify the output style for the table. Each option uses a different package for formatting.
- excl
Boolean option to exclude missing values (NA) from the analysis. Note: Exclusion may remove entire cases.