Browse Source

Corrección firstoper en sección survival.

master
marcelcosta 10 months ago
parent
commit
bbf19befaf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      invivos/app.R

+ 2
- 2
invivos/app.R

@ -645,9 +645,9 @@ server <- function(input, output) {
}else{ }else{
firstoper<- filter(table, !is.na(substr(Observations,1,1)) & substr(Observations,1,1) == "*") %>% firstoper<- filter(table, !is.na(substr(Observations,1,1)) & substr(Observations,1,1) == "*") %>%
pull(DayPostInoc) %>% min(na.rm = T) pull(DayPostInoc) %>% min(na.rm = T)
print(firstoper)
if (firstoper == Inf){firstoper<-c()}
if (input$operated == TRUE & nrow(firstoper) > 0){
if (input$operated == TRUE & length(firstoper) > 0){
table<-table %>% filter(DayPostInoc < firstoper) table<-table %>% filter(DayPostInoc < firstoper)
}else{ }else{
deadmice<-filter(table, !is.na(substr(Observations,1,1)) & substr(Observations,1,1) == "+") %>% deadmice<-filter(table, !is.na(substr(Observations,1,1)) & substr(Observations,1,1) == "+") %>%

Loading…
Cancel
Save