ff_stratify_helper: Help making stratified summary_factorlist tables

ff_stratify_helperR Documentation

Help making stratified summary_factorlist tables

Description

Help making stratified summary_factorlist tables

Usage

ff_stratify_helper(df.out, .data)

Arguments

df.out

Output from summary_factorlist

.data

Original data frame used for summary_factorlist.

Examples

library(dplyr)
explanatory = c("age.factor", "sex.factor")
dependent = "perfor.factor"

# Pick option below
split = "rx.factor"
split = c("rx.factor", "node4.factor")

# Piped function to generate stratified crosstabs table
colon_s %>%
  group_by(!!! syms(split)) %>% #Looks awkward, but avoids unquoted var names
  group_modify(~ summary_factorlist(.x, dependent, explanatory)) %>%
  ff_stratify_helper(colon_s)

finalfit documentation built on Sept. 11, 2024, 9:01 p.m.