Skip to content

Need hep for converting date data in POSIXct

2 messages · arun, laila

#
Hi Laila,
There is only one column from the dput() output.
time1<- structure(list(date....
str(time1)
#'data.frame':??? 20 obs. of? 1 variable:
# $ date: Factor w/ 582 levels "01/01/2009 01:58",..: 370 389 390 409 410 429 430 450 451 471 ..
?time1[,1]<-as.POSIXct(time1[,1],format="%d/%m/%Y %H:%M")
head(time1)
?# ?????????????? date
#1 2008-11-20 12:23:00
#2 2008-11-21 00:33:00
#3 2008-11-21 12:29:00
#4 2008-11-22 00:29:00
#5 2008-11-22 12:39:00
#6 2008-11-23 00:50:00


A.K.