Browse Source

Corregir bug al importar fichero análisis porque no encuentra columna sex.

master
Costa 2 years ago
parent
commit
b2d885c2c6
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      invivos/app.R

+ 4
- 2
invivos/app.R

@ -317,14 +317,16 @@ server <- function(input, output) {
analysis$taula_vol<-NULL
observe({
if (!is.null(input$file_analy)){
analysis$taula<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ") %>% select(-sex)
table<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ")
if ("sex" %in% colnames(table)){table<-select(table, -sex)}
analysis$taula<-table
}
})
output$cutoffUI<-renderUI({
if (!is.null(analysis$taula_def)){
observeEvent(analysis$taula_def, {})
max_val<-max(analysis$taula_def$Volume, na.rm = T)
print(max_val)
# print(max_val)
sliderInput("cutoff", "Cutoff para Survival", min=0, max=round(max_val), step=round(max_val)/200, value=max_val)
}
})

Loading…
Cancel
Save