use correct factor order

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-12-04 08:05:56 +01:00
parent 149c2747f4
commit f22a0a56b2
No known key found for this signature in database

View File

@ -110,7 +110,8 @@ wide_data_suffixes <- wide_data |> suffix2label()
## Creating a nice table ## Creating a nice table
```{r} ```{r}
wide_data_suffixes |> wide_data_suffixes |>
as_factor()|>
dplyr::select(sex, hypertension, diabetes,mrs_score____follow2) |> dplyr::select(sex, hypertension, diabetes,mrs_score____follow2) |>
gtsummary::tbl_summary() gtsummary::tbl_summary(type = gtsummary::all_dichotomous() ~ "categorical")
``` ```