|
@ -355,6 +355,18 @@ server <- function(input, output) { |
|
|
observe({ |
|
|
observe({ |
|
|
if (!is.null(input$file_analy)){ |
|
|
if (!is.null(input$file_analy)){ |
|
|
table<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ", detectDates = T) |
|
|
table<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ", detectDates = T) |
|
|
|
|
|
if("ID animal" %in% colnames(table)){ |
|
|
|
|
|
table<-table %>% |
|
|
|
|
|
rename(Animal=`ID.animal`, Side=`ID.tumor`) |
|
|
|
|
|
table<-table %>% gather(DayPostInoc, Value, which(!is.na(as.numeric(colnames(table))))) %>% |
|
|
|
|
|
relocate(DayPostInoc, .before = Group) %>% spread(DPV, Value) %>% |
|
|
|
|
|
rename(Long=Major, Wide=Minor) %>% |
|
|
|
|
|
add_column(Date="", .after = "Animal") %>% |
|
|
|
|
|
add_column(Weight="", .after="Group") %>% |
|
|
|
|
|
add_column(Volume="",Observations="") %>% |
|
|
|
|
|
relocate(Side, .after = "Group") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
table$Date<-format(table$Date, format="%d/%m/%Y") |
|
|
table$Date<-format(table$Date, format="%d/%m/%Y") |
|
|
if ("sex" %in% colnames(table)){table<-select(table, -sex)} |
|
|
if ("sex" %in% colnames(table)){table<-select(table, -sex)} |
|
|
for (i in 1:nrow(table)){ |
|
|
for (i in 1:nrow(table)){ |
|
|