mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ account: agdamsbo
|
|||
server: shinyapps.io
|
||||
hostUrl: https://api.shinyapps.io/v1
|
||||
appId: 13611288
|
||||
bundleId: 9672132
|
||||
bundleId: 9672388
|
||||
url: https://agdamsbo.shinyapps.io/freesearcheR/
|
||||
version: 1
|
||||
|
|
|
|||
|
|
@ -288,7 +288,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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -279,12 +279,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 = 70,
|
||||
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue