Learn R Programming

epitabulate (version 0.1.0)

gt_remove_stat: A gtsummary wrapper function that takes a gtsummary object and removes a column from the table body by column name

Description

A gtsummary wrapper function that takes a gtsummary object and removes a column from the table body by column name

Usage

gt_remove_stat(gts_object, col_name = "stat_0")

Value

a gtsummary object without the named column

Arguments

gts_object

A data frame, passed by the gtsummary::add_stat function

col_name

the column name from the gtsummary object's table_body to remove