Browse Source

Corregido error en exportar volúmenes.

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

+ 2
- 2
invivos/app.R

@ -327,7 +327,7 @@ server <- function(input, output) {
table<-table %>% filter(!is.na(Group)) table<-table %>% filter(!is.na(Group))
table$Timepoint<-factor(table$Timepoint, levels=mixedsort(as.numeric(as.character(unique(table$Timepoint))))) table$Timepoint<-factor(table$Timepoint, levels=mixedsort(as.numeric(as.character(unique(table$Timepoint)))))
analysis$taula_def<-table analysis$taula_def<-table
analysis$taula_vol<-dcast(table, Cage+`ID animal`+`ID tumor`~Volume)
analysis$taula_vol<-dcast(table, Cage+`ID animal`+`ID tumor`~Timepoint,value.var = "Volume")
table_plot<-dcast(dcast(table %>% filter(!is.na(Volume)), `ID animal`+Group+Timepoint~., value.var = "Volume", fun.aggregate = mean), Group~Timepoint) table_plot<-dcast(dcast(table %>% filter(!is.na(Volume)), `ID animal`+Group+Timepoint~., value.var = "Volume", fun.aggregate = mean), Group~Timepoint)
table_plot table_plot
} }
@ -504,7 +504,7 @@ server <- function(input, output) {
} }
}) })
output$downloadVolumes <- downloadHandler(
output$downloadVolume <- downloadHandler(
filename = function() { filename = function() {
paste("invivo-vols", ".xlsx", sep="") paste("invivo-vols", ".xlsx", sep="")

Loading…
Cancel
Save