Displaying 1 result from an estimated 1 matches for "df_date".
2006 Nov 09
1
POSIXlt converted to POSIXct in as.data.frame()
...;- strptime(c("11-09-2006", "11-10-2006", "11-11-2006",
"11-12-2006", "11-13-2006"), "%m-%d-%Y")
str(my_POSIX)
my_Date <- as.Date(my_POSIX)
str(my_Date)
data <- format(my_Date)
str(data)
my_DF <- data.frame(my_POSIX)
str(my_DF)
DF_Date <- as.Date(my_DF$my_POSIX)
str(DF_Date)
DF_Date
The consequence (for my LC_TIME and machine time zone) is that when
as.Date() is applied to the data frame column, it dispatches on
as.Date.POSIXct() not as.Date.POSIXlt(), causing a day shift (actually 60
minutes, but because as.Date.POSIXct()...