I have a series of data sets from a continuous water quality monitoring probe with the date and time set at Eastern Standard Time (EST), so there is no Daylight Saving Time (EDT). In R, the fields are recognized as factors when importing the data table from the MS access database, however, when converting using as.POSIXct () the dates and times from 02:00 (24 hours) to 2016-03-13 become NS. This is due to the transition from EST to EDT ... therefore technically 2016-03-13 02:00 does not exist.
Some created data as an example
test<-data.frame(Date=rep(as.Date("2016-03-13"),120),Hour=rep(seq(0,23,1),5),Min=rep(seq(0,60,15),24))
Is there a way to convert a factor or symbol field to a POSIXct field while keeping the time zone designation EST? Alternatively, is there a way to identify and convert the correct date and time to EST and EDT?
I walked around and can't make it work. I tried to convert to GMT (or UTC) and then convert back to EST (tz = "America / New_York"). I understand that this is a constant problem, and people who work with date and time data, especially in R, would like to move away from EDT.
Any help is appreciated ... I am on my way on this.
source share