I have a time column in my dataframe, its format is character:
TIME
10:54:10.23
10:54:11.58
10:56:34.21
11:57:11.23
So u see I also have milliseconds in the end, but I try to get only %H-%M-%S without the .x milliseconds. I tried to creat a new column by: data$hms <- format(as.POSIXct(data$TIME), "%H:%M:%S") but failed... Error in as.POSIXlt.character(x, tz, ...): String is not in a unique standard format.
Every help is appreciated.