spicy_continuous_table to a plain data frame or tibbleThese S3 methods strip the "spicy_continuous_table" /
"spicy_table" classes and the rendering-only attributes
(digits, decimal_mark, ci_level, align, p_digits, ...)
from an object returned by table_continuous() 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 "group_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.
# S3 method for spicy_continuous_table
as.data.frame(x, row.names = NULL, optional = FALSE, ...)# S3 method for spicy_continuous_table
as_tibble(x, ...)
A plain data.frame (or tbl_df) with one row per
(variable x group) (or one row per variable when by is not
used).
A spicy_continuous_table returned by table_continuous().
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 the as.data.frame() method).
The returned data is identical to what output = "long" (or
output = "data.frame") returns directly from table_continuous();
use whichever entry point reads better in your pipeline.
tidy.spicy_continuous_table(),
glance.spicy_continuous_table() for cleaner broom-style pivots
tailored to downstream pipelines.