I just was faced with the problem, that I want to add up times in a time object, but the standard stuff (colSums
, sum
, rowSums
) isn't working.
So, I have
time<-c("00:00:01", "01:02:00", "09:30:01", "14:15:25")
library(chron)
x <- chron(times=time)
x
[1] 00:00:01 01:02:00 09:30:01 14:15:25
How can I now add up all times in x
?