Corregir lectura de fechas en excel.

This commit is contained in:
2023-01-27 15:23:04 +01:00
parent dde77d987c
commit bdbd8edf9d
+2 -1
View File
@@ -347,7 +347,8 @@ server <- function(input, output) {
analysis$taula_vol<-NULL
observe({
if (!is.null(input$file_analy)){
table<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ")
table<-read.xlsx(input$file_analy$datapath, sheet = 1, check.names = F, sep.names = " ", detectDates = T)
table$Date<-format(table$Date, format="%d/%m/%Y")
if ("sex" %in% colnames(table)){table<-select(table, -sex)}
table$Long<-gsub(",",".", table$Long)
table$Wide<-gsub(",",".", table$Wide)