Coerce a spicy_continuous_lm_table to a plain data frame or tibble
Source: R/table_continuous_lm_print.R
as.data.frame.spicy_continuous_lm_table.RdThese S3 methods strip the "spicy_continuous_lm_table" /
"spicy_table" classes and the rendering-only attributes
(digits, decimal_mark, ci_level, ...) from an object returned
by table_continuous_lm() so the underlying long-format data can
be manipulated with downstream tools (dplyr, tidyr, etc.) under
the standard data.frame / tbl_df contract. The single attribute
"by_var" is preserved as a lightweight provenance marker; all
other spicy attributes are dropped. The original x is unaffected,
and print(x) continues to render the formatted ASCII table.
Usage
# S3 method for class 'spicy_continuous_lm_table'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S3 method for class 'spicy_continuous_lm_table'
as_tibble(x, ...)Arguments
- x
A
spicy_continuous_lm_tablereturned bytable_continuous_lm().- row.names, optional
Standard
base::as.data.frame()arguments. Currently ignored: the long format already carries integer row names and explicit columns.- ...
Further arguments passed to
tibble::as_tibble()(for the tibble method) or ignored (for theas.data.frame()method).
Value
A plain data.frame (or tbl_df) with the same rows and
columns as the long output of table_continuous_lm().
See also
tidy.spicy_continuous_lm_table(),
glance.spicy_continuous_lm_table() for cleaner broom-style
pivots tailored to downstream pipelines.