Corregir lectura de fechas en excel.
This commit is contained in:
+2
-1
@@ -347,7 +347,8 @@ server <- function(input, output) {
|
|||||||
analysis$taula_vol<-NULL
|
analysis$taula_vol<-NULL
|
||||||
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 = " ")
|
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)}
|
if ("sex" %in% colnames(table)){table<-select(table, -sex)}
|
||||||
table$Long<-gsub(",",".", table$Long)
|
table$Long<-gsub(",",".", table$Long)
|
||||||
table$Wide<-gsub(",",".", table$Wide)
|
table$Wide<-gsub(",",".", table$Wide)
|
||||||
|
|||||||
Reference in New Issue
Block a user