[R] how to cumulate up times

René Mayer mayer at psychologie.tu-dresden.de
Tue Apr 24 17:35:31 CEST 2012


Dear List,
given a vecor of times in 5,15 and 30 minutes and a start point
in time, lets say 09:30:00, how do I add up those times
to the start time getting a cumulative time sequence?

mt<-times(c('00:05:00', '00:15:00', '00:30:00'))
mt       wanted
00:05:00 09:35:00
00:15:00 09:50:00
00:30:00 10:20:00

Regards,
René



More information about the R-help mailing list