as_result_df: Generate a Result Data Frame

View source: R/tt_export.R

as_result_dfR Documentation

Generate a Result Data Frame

Description

Generate a Result Data Frame

Usage

as_result_df(tt, spec = "v0_experimental", ...)

Arguments

tt

VTableTree. The table.

spec

character(1). The specification to use to extract the result data frame. See details

...

Passed to spec-specific result data frame conversion function.

Details

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.

Note

This function may eventually be migrated to a separate package, and so should not be called via ::

Examples


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)

rtables documentation built on Aug. 30, 2023, 5:07 p.m.