I have a dataframe called "Camera_data" and a column called "Numeric_time"
My "Numeric_time" column is in character format and includes hours, minutes and seconds, it looks like this: 08:40:01
I need to remove the numbers that pertain to seconds and replace the semicolons with periods to make a decimal number for my time. I need it to look like this: 08.40 in order to turn my time into radians for an analysis I'm running.
I've looked for a few solutions in stringr, but so far can't work out how to consistently take off the last three characters. I think once I have removed the seconds and replaced the : with a . I can just use as.numeric to turn the character column into a numerical column, but would really appreciate any help!