I’m trying to create a data column that lists **only ** the hour each observation took place from time data that’s formatted as HH:MM:SS in R.
I want to do this so I can group observations in my dataset by the hour they took place.
The dataset is very large so creating separate vectors with the observations based on hour feels time-consuming.
I’ve tried to explore the ‘lubridate’ function but I’m having trouble finding a solution.
Any help is appreciated!