data.frame_export | R Documentation |
Collection of utilities to extract data.frame
objects from TableTree
objects.
as_result_df(tt, spec = "v0_experimental", simplify = FALSE, ...)
result_df_specs()
path_enriched_df(tt, path_fun = collapse_path, value_fun = collapse_values)
tt |
( |
spec |
( |
simplify |
( |
... |
additional arguments passed to spec-specific result data frame conversion function. Currently it can be
one or more of the following parameters (valid only for
|
path_fun |
( |
value_fun |
( |
as_result_df()
: Result data frame specifications may differ in the exact information
they include and the form in which they represent it. Specifications whose names end in "_experimental"
are subject to change without notice, but specifications without the "_experimental"
suffix will remain available including any bugs in their construction indefinitely.
as_result_df
returns a result data.frame
.
result_df_specs()
returns a named list of result data frame extraction functions by "specification".
path_enriched_df()
returns a data.frame
of tt
's cell values (processed by value_fun
, with columns named by
the full column paths (processed by path_fun
and an additional row_path
column with the row paths (processed
by path_fun
).
result_df_specs()
: A list of functions that extract result data frames from TableTree
s.
path_enriched_df()
: Transform a TableTree
object to a path-enriched data.frame
.
df_to_tt()
when using as_is = TRUE
and formatters::make_row_df()
to have a comprehensive view of the
hierarchical structure of the rows.
lyt <- basic_table() %>%
split_cols_by("ARM") %>%
split_rows_by("STRATA1") %>%
analyze(c("AGE", "BMRKR2"))
tbl <- build_table(lyt, ex_adsl)
as_result_df(tbl)
result_df_specs()
lyt <- basic_table() %>%
split_cols_by("ARM") %>%
analyze(c("AGE", "BMRKR2"))
tbl <- build_table(lyt, ex_adsl)
path_enriched_df(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.