ss_format: Quick format a sstable in preparation for create...

View source: R/ssformat.R

ss_formatR Documentation

Quick format a sstable in preparation for create flextable/huxtable

Description

This function is the combination of ss_header, ss_body, and ss_section.

Usage

ss_format(
  sstable,
  header = c(),
  section = c(),
  body = c(),
  template = c("baseline", "survcomp", "ae"),
  .guess = TRUE
)

Arguments

sstable

a data frame following sstable's grammar

header

a numeric vector that will be passed to ss_header

section

a numeric vector that will be passed to ss_section

body

a numeric vector that will be passed to ss_body

template

An accepted template for sstable: must be either 'baseline', 'survcomp', or 'ae'.

If NA, the existing template in the sstable is kept as-is. It no template built-in, will return a no-template sstable instead.

.guess

a logical value. If TRUE, the function will try to guess to which part each row belongs.

Value

a matrix of class ss_tbl


oucru-biostats/C306 documentation built on July 16, 2024, 2:33 p.m.