Grouped univariate analysis

tab_grp <- grouped_table(df, group)

Categoricals

tab_grp$categoricals %>% 
  dplyr::mutate_if(is.numeric, signif, 3) %>%
  knitr::kable() %>% 
  kableExtra::kable_styling(bootstrap_options = "striped", full_width = F)

Quantitatives

Variables mean and (sd) is presented by group

tab_grp$quantitatives %>% 
  dplyr::mutate_if(is.numeric, signif, 3) %>%
  knitr::kable() %>% 
  kableExtra::kable_styling(bootstrap_options = "striped", full_width = F)


AdrienLeGuillou/descriptor documentation built on May 22, 2019, 7:55 p.m.