.list2tb {gtsummary} | R Documentation |
Many arguments in 'gtsummary' accept named lists. This function converts
a named list to the .$table_body
format expected in scope_table_body()
.list2tb(x, colname = caller_arg(x))
x |
named list |
colname |
string of column name to assign. Default is |
.$table_body
data frame
type <- list(age = "continuous", response = "dichotomous")
gtsummary:::.list2tb(type, "var_type")