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 col_spec rendering metadata, returning the wide character
display as a plain data.frame (or tbl_df via as_tibble()).
The title and note 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
Equivalent to passing output = "data.frame" to
table_regression().
See also
tidy.spicy_regression_table(),
glance.spicy_regression_table() for broom-canonical long
views.