Hi,
I need to round my time stamps to the nearest hour. I read "Round, floor and ceiling methods for date-time objects" in Lubridate, but unfortunately a previous colleague has separated the dates from the time stamps. I have tried case_when() and mutate_at() but the rounded times do not show in the new mutated column.
I need times under the half-hour to round back to the last hour, and times past the half-hour to round to the next hour. And then there are the time stamps exactly at the hour that will stay the same.
I would love to learn how apply() or map() could help me - or what ever the correct function would be. Apologies for not supplying a reprex but I am on a secure server and can not copy.