Skip to content
Prev 387792 / 398502 Next

Add a new row based on test set predicted values and time stamps

The date you get using as.Date on a POSIXct value depends on the timezone. That is, as.Date only pays attention to the underlying UTC seconds-since-epoch value, so it ignores the timezone which can be unexpected for most people. 

TL;DR as.Date is not the same as as.POSIXct( trunc( dtm, units="days" ) ) unless you are using GMT.
On April 13, 2021 10:55:04 AM PDT, Bert Gunter <bgunter.4567 at gmail.com> wrote: