cynthia-hg commited on
Commit
f2b616e
·
verified ·
1 Parent(s): a54e513

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -0
app.R CHANGED
@@ -32,6 +32,10 @@ defaults <- list(
32
  LDL = 120
33
  )
34
 
 
 
 
 
35
  # ---- UI ----
36
  ui <- fluidPage(
37
  titlePanel("T2D Risk Prediction App"),
 
32
  LDL = 120
33
  )
34
 
35
+ # Clean factor_levels from any mistakenly included numeric predictors
36
+ factor_levels <- factor_levels[!names(factor_levels) %in% num_vars]
37
+ factor_vars <- names(factor_levels)
38
+
39
  # ---- UI ----
40
  ui <- fluidPage(
41
  titlePanel("T2D Risk Prediction App"),