This function ingests a data frame and adds the infrastructure around it
to make it a gtsummary object.
Usage
as_gtsummary(table_body, ...)
Arguments
- table_body
(data.frame
)
a data frame that will be added as the gtsummary object's table_body
- ...
other objects that will be added to the gtsummary object list
Details
Function uses table_body
to create a gtsummary object
Examples
mtcars[1:2, 1:2] |>
as_gtsummary()