This function ingests a data frame and adds the infrastructure around it to make it a gtsummary object.
as_gtsummary(table_body, ...)gtsummary object
Function uses table_body to create a gtsummary object
mtcars[1:2, 1:2] |>
as_gtsummary()
mpg
cyl