From cbf28e37c4a7dd3ccfb814c4080d3f01d45a6e88 Mon Sep 17 00:00:00 2001 From: Costa <47926492N@ICO.SCS.local> Date: Tue, 22 Dec 2020 17:44:35 +0100 Subject: [PATCH] Corregir error. --- invivos/app.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invivos/app.R b/invivos/app.R index 5f0d506..712eb05 100644 --- a/invivos/app.R +++ b/invivos/app.R @@ -239,7 +239,9 @@ server <- function(input, output) { template<-template[order(template$Timepoint, template$Cage, template$`ID animal`, template$`ID tumor`),] template["TS"]<-rep(c("TS-Length", "TS-Width", "TS-Deep"), nrow(template)/3) dtemplate<-dcast(template, Cage+`ID animal`+`ID tumor`+Group+TS~Timepoint) - dtemplate<-dtemplate[,mixedorder(dtemplate$`ID animal`, dtemplate$`ID tumor`, dtemplate$TS)] + dtemplate<-dtemplate[order(match(dtemplate$TS, c("TS-Length", "TS-Width", "TS-Deep"))),] + dtemplate<-dtemplate[mixedorder(dtemplate$`ID tumor`),] + dtemplate<-dtemplate[mixedorder(dtemplate$`ID animal`),] } if (input$measure_sys == "Min-Max"){ template<-rbind(template, template)