.list2tb | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.