Learn R Programming

rtables (version 0.4.0)

add_overall_col: Add Overall Column

Description

This function will only add an overall column at the top level of splitting, NOT within existing column splits. See add_overall_level for the recommended way to add overall columns more generally within existing splits.

Usage

add_overall_col(lyt, label)

Arguments

lyt

layout object pre-data used for tabulation

label

character(1). A label (not to be confused with the name) for the object/structure.

Value

A PreDataTableLayouts object suitable for passing to further layouting functions, and to build_table.

See Also

add_overall_level

Examples

Run this code
# NOT RUN {
l <- basic_table() %>%
   split_cols_by("ARM") %>%
   add_overall_col("All Patients") %>%
   analyze("AGE")

l

build_table(l, DM)

# }

Run the code above in your browser using DataLab