Skip to contents

Strips 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_table returned by table_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