Browse Source

Solucionar el reparto de grupos.

master
marcelcosta 3 years ago
parent
commit
fc1c6c5341
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      invivos/app.R

+ 2
- 1
invivos/app.R

@ -155,7 +155,8 @@ server <- function(input, output) {
if ((nrow(df_temp)/ngroup) %% 2 == 0){ if ((nrow(df_temp)/ngroup) %% 2 == 0){
interr<-any(table(df_temp$group) < floor(nrow(df_temp)/ngroup) | table(df_temp$group) > ceiling(nrow(df_temp)/ngroup)) interr<-any(table(df_temp$group) < floor(nrow(df_temp)/ngroup) | table(df_temp$group) > ceiling(nrow(df_temp)/ngroup))
}else{ }else{
interr<-any(table(df_temp$group) < (floor(nrow(df_temp)/ngroup)-1) | table(df_temp$group) > (ceiling(nrow(df_temp)/ngroup)+1))
# interr<-any(table(df_temp$group) < (floor(nrow(df_temp)/ngroup)-1) | table(df_temp$group) > (ceiling(nrow(df_temp)/ngroup)+1))
interr<-diff(range(table(ind))) > 1
} }
} }
ind.list[[data]]<-df_temp[,c("ID animal", "ID tumor","group","Volume")] ind.list[[data]]<-df_temp[,c("ID animal", "ID tumor","group","Volume")]

Loading…
Cancel
Save