as_gtsummary {gtsummary} | R Documentation |
Create gtsummary table
Description
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 |
( |
... |
other objects that will be added to the gtsummary object list |
Details
Function uses table_body
to create a gtsummary object
Value
gtsummary object
Examples
mtcars[1:2, 1:2] |>
as_gtsummary()
[Package gtsummary version 2.2.0 Index]