Convert a spicy_regression_table to a plain data.frame / tibble
Source: R/regression_broom.R
as.data.frame.spicy_regression_table.RdStrips the spicy_regression_table / spicy_table classes and
the internal analytic attributes (spicy_long, spicy_fit_stats),
returning the wide character display as a plain data.frame (or
tbl_df via as_tibble()). The title, note, provenance
(model_ids, outcome), and rendering (col_spec) attributes are
preserved.
Usage
# S3 method for class 'spicy_regression_table'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S3 method for class 'spicy_regression_table'
as_tibble(x, ...)Arguments
- x
A
spicy_regression_tablereturned bytable_regression().- row.names, optional
Standard
as.data.frame()arguments (currently ignored – the table's row layout is preserved).- ...
Currently ignored.
Value
A plain data.frame (for as.data.frame()) or a
tbl_df (for as_tibble()).
Details
as.data.frame() is equivalent to passing output = "data.frame"
to table_regression(): the two paths return identical objects
(same cells, classes, and attributes).
See also
tidy.spicy_regression_table(),
glance.spicy_regression_table() for broom-canonical long
views.