I have a "Time" column in R with a set of character time values in HH:MM:SS However, some of the times do not have the seconds, which makes conversion from char to chron() impossible
Example:
library(chron)
x <- c("08:25:18","08:25","08:24:57","08:24:47")
I want to convert x to chron(), but without the seconds it converts that value to N/A
How can I add :00 seconds to just those that need it? Thanks
We could convert to date time,
formatit and then apply thetimesOr specify the
timesinchronOr use
as.ITimefromdata.tablewhich would work