Error: Invalid input: time_trans works with objects of class POSIXct only >
I have been trying to figure out this error for a while today. I’ve read several other threads and can’t seem to find a fix. I have checked the structure of my dataframe and the vector (date) is in the correct format, but I’m still getting the error. Any idea what the problem is? Code below.