From f22a0a56b2523bb26f8331eb9b7456ac7d32f4d6 Mon Sep 17 00:00:00 2001 From: Andreas Gammelgaard Damsbo Date: Wed, 4 Dec 2024 08:05:56 +0100 Subject: [PATCH] use correct factor order --- vignettes/REDCapCAST.Rmd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vignettes/REDCapCAST.Rmd b/vignettes/REDCapCAST.Rmd index 696ca20..4177ed3 100644 --- a/vignettes/REDCapCAST.Rmd +++ b/vignettes/REDCapCAST.Rmd @@ -110,7 +110,8 @@ wide_data_suffixes <- wide_data |> suffix2label() ## Creating a nice table ```{r} -wide_data_suffixes |> +wide_data_suffixes |> + as_factor()|> dplyr::select(sex, hypertension, diabetes,mrs_score____follow2) |> - gtsummary::tbl_summary() + gtsummary::tbl_summary(type = gtsummary::all_dichotomous() ~ "categorical") ```