table1_gt: gt output for table1

View source: R/table1_gt.R

table1_gtR Documentation

gt output for table1

Description

This takes a table1 object and outputs a 'gt' version.

Usage

table1_gt(tab, spanner = NULL)

Arguments

tab

the table1 object

spanner

the label above the grouping variable (if table1 is grouped) or any label you want to include over the statistics column(s)

Author(s)

Tyson S. Barrett

Examples


library(furniture)
library(dplyr)

data('nhanes_2010')
nhanes_2010 %>%
  group_by(asthma) %>%
  table1(age, marijuana, illicit, rehab, na.rm = FALSE) %>%
  table1_gt(spanner = "Asthma")


TysonStanley/furniture documentation built on Feb. 15, 2024, 11:40 p.m.