unnest_modelsummary_list | R Documentation |
modelsummary_list
columnUnnest a nested data frame with a modelsummary_list
column by
adding tidy
and glance
columns.
unnest_modelsummary_list(data, col = "model", remove = TRUE)
data |
A data.frame |
col |
Name of the |
remove |
If ‘TRUE’, remove input column from output data frame. |
A modelsummary_list
object can be directly used to print
regression tables but needs to be unnested for further processing,
e.g. for plotting from the "tidy" data.frame.
tidyr::unnest_wider()
doesn't work for objects of
this type, and it cannot be extended with custom methods. This
function reimplements unnesting in a simple case.
The original data.frame with two added columns, optionally the input column removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.