Learn R Programming

rtables (version 0.4.0)

basic_table: Layout with 1 column and zero rows

Description

Every layout must start with a basic table.

Usage

basic_table(
  title = "",
  subtitles = character(),
  main_footer = character(),
  prov_footer = character(),
  show_colcounts = FALSE
)

Arguments

title

character(1). Main title. Ignored for subtables.

subtitles

character. Subtitles. Ignored for subtables.

main_footer

character. Main global (non-referential) footer materials.

prov_footer

character. Provenance-related global footer materials. Generally should not be modified by hand.

show_colcounts

logical(1). Should column counts be displayed in the resulting table when this layout is applied to data

Value

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

Examples

Run this code
# NOT RUN {
lyt <- basic_table() %>%
  analyze("AGE", afun = mean)

build_table(lyt, DM)

# }

Run the code above in your browser using DataLab