Regression with time and date

Probably using lubridate package which has convenience functions for extracting hours/seconds/minutes from a time vector would help you.
Do more with dates and times in R (r-project.org)

A Reprex from you would be useful in order to provide you specific help
FAQ: How to do a minimal reproducible example ( reprex ) for beginners

1 Like