Coerce a spicy_continuous_svy_table to a plain data frame or tibble
Source: R/table_continuous_svy_print.R
as.data.frame.spicy_continuous_svy_table.Rdas.data.frame() returns the table table_continuous_svy() displays,
with its numbers: exactly what output = "data.frame" returns, the
shape of as.data.frame.spicy_continuous_table() (the key columns
variable, label and, with by, group and .row_role, then one
column per displayed column). The note, as printed, is kept in
attr(, "note"). as_tibble() returns the same table as a tibble.
Usage
# S3 method for class 'spicy_continuous_svy_table'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S3 method for class 'spicy_continuous_svy_table'
as_tibble(x, ...)Arguments
- x
A
spicy_continuous_svy_tablereturned bytable_continuous_svy().- row.names, optional, ...
Passed on for method compatibility; ignored.
Value
A plain data.frame (or a tbl_df for as_tibble()),
identical to the output = "data.frame" of the same call.