as_sstable: Coerce an object to sstable

View source: R/ssformat.R

as_sstableR Documentation

Coerce an object to sstable

Description

A function to coerce objects to a sstable

Usage

as_sstable(x, ...)

## Default S3 method:
as_sstable(x, flextable = FALSE, ...)

## S3 method for class 'list'
as_sstable(x, flextable = FALSE, ...)

## S3 method for class 'logist_summary'
as_sstable(x, include_footnote = TRUE, flextable = FALSE, ...)

## S3 method for class 'overlap_summary'
as_sstable(x, include_footnote = TRUE, flextable = FALSE, ...)

## S3 method for class 'subgroup_logist_summary'
as_sstable(x, include_footnote = TRUE, flextable = FALSE, ...)

Arguments

x

An object, usually a named list of length 2 whose names are 'table' and 'footer', or a data.frame/matrix (optionally with attribute "footer")

...

additional parameters passed to ss_flextable

flextable

logical value specifying whether to return a flextable. Default is FALSE

include_footnote

logical value specifying whether to include footnote in the output. Default is FALSE

include_footsnote

logical value specifying whether to include footnote in the output. Default is FALSE

Value

A matrix of class ss_tbl if flextable == FALSE, otherwise a flextable


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