mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 09:32:10 +01:00
feat: missings table now features bold significant p-values for easier overview
This commit is contained in:
parent
9c1d6ed630
commit
adcd404813
1 changed files with 4 additions and 1 deletions
|
|
@ -59,16 +59,19 @@ data_missings_server <- function(id,
|
||||||
shiny::req(variabler)
|
shiny::req(variabler)
|
||||||
|
|
||||||
if (is.null(variabler()) || variabler() == "" || !variabler() %in% names(datar())) {
|
if (is.null(variabler()) || variabler() == "" || !variabler() %in% names(datar())) {
|
||||||
|
tbl <- rv$data()
|
||||||
if (anyNA(datar())){
|
if (anyNA(datar())){
|
||||||
title <- i18n$t("No variable chosen for analysis")
|
title <- i18n$t("No variable chosen for analysis")
|
||||||
} else {
|
} else {
|
||||||
title <- i18n$t("No missing observations")
|
title <- i18n$t("No missing observations")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
tbl <- rv$data()|>
|
||||||
|
gtsummary::bold_p()
|
||||||
title <- glue::glue(i18n$t("Missing vs non-missing observations in the variable **'{variabler()}'**"))
|
title <- glue::glue(i18n$t("Missing vs non-missing observations in the variable **'{variabler()}'**"))
|
||||||
}
|
}
|
||||||
|
|
||||||
out <- rv$data() |>
|
out <- tbl |>
|
||||||
gtsummary::as_gt() |>
|
gtsummary::as_gt() |>
|
||||||
gt::tab_header(title = gt::md(title))
|
gt::tab_header(title = gt::md(title))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue