ff_stratify_helper | R Documentation |
Help making stratified summary_factorlist tables
ff_stratify_helper(df.out, .data)
df.out |
Output from |
.data |
Original data frame used for |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.