Ordenar template.

This commit is contained in:
Costa
2020-12-22 17:31:59 +01:00
parent 79755bd197
commit 7964567c3e
+1
View File
@@ -239,6 +239,7 @@ server <- function(input, output) {
template<-template[order(template$Timepoint, template$Cage, template$`ID animal`, template$`ID tumor`),] 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) 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<-dcast(template, Cage+`ID animal`+`ID tumor`+Group+TS~Timepoint)
dtemplate<-dtemplate[,mixedorder(dtemplate$`ID animal`, dtemplate$`ID tumor`, dtemplate$TS)]
} }
if (input$measure_sys == "Min-Max"){ if (input$measure_sys == "Min-Max"){
template<-rbind(template, template) template<-rbind(template, template)