make_tab1: Table One

View source: R/make_tabs.R

make_tab1R Documentation

Table One

Description

Create a nicely formatted table for variables of interest.

Usage

make_tab1(
  data,
  grp_var,
  all = TRUE,
  select = c(),
  labs = FALSE,
  fmt_labs = c()
)

Arguments

data

dataset that contains the variables of interest

grp_var

name of grouping variable for data summary calculation as a string

all

boolean to indicate whether select all variables from the dataset

select

list of variables names to be selected from the dataset in strings

labs

boolean to indicate whether customized labels are being used in the table

fmt_labs

list of customized labels either in strings or in formula format

Value

none

Examples

make_tab1(ggplot2::diamonds, "cut")


sarazong/SZRtools documentation built on Feb. 8, 2024, 6:49 a.m.