mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 20:47:29 +02:00
tuning completeness filter
This commit is contained in:
parent
27175d9655
commit
96227d5006
5 changed files with 53 additions and 13 deletions
|
|
@ -3621,12 +3621,13 @@ ui_elements <- list(
|
|||
# fillable = TRUE,
|
||||
sidebar = bslib::sidebar(
|
||||
shiny::sliderInput(inputId = "complete_cutoff",
|
||||
label = "Cut-off for column completeness",
|
||||
label = "Cut-off for column completeness (%)",
|
||||
min = 0,
|
||||
max = 1,
|
||||
step = 0.1,
|
||||
value = 0.5),
|
||||
shiny::helpText("To improve speed, columns are removed before analysing data"),
|
||||
max = 100,
|
||||
step = 10,
|
||||
value = 50,
|
||||
ticks = FALSE),
|
||||
shiny::helpText("To improve speed, columns are removed before analysing data, if copleteness is below above value."),
|
||||
shiny::radioButtons(
|
||||
inputId = "all",
|
||||
label = "Specify covariables",
|
||||
|
|
@ -4152,7 +4153,9 @@ server <- function(input, output, session) {
|
|||
(\(.x){
|
||||
.x[base_vars()]
|
||||
})() |>
|
||||
janitor::remove_empty(which = "cols",cutoff = input$complete_cutoff)
|
||||
janitor::remove_empty(
|
||||
which = "cols",
|
||||
cutoff = input$complete_cutoff/100)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue