Spaces:
Runtime error
Runtime error
Update app.R
Browse files
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"),
|