| t2m {heR.Activities} | R Documentation |
Simple function to convert time in ``hhmm'' format to elapsed minutes
t2m(x, increasing=TRUE)
x |
vector of characters containing time in ``hhmm'' format where ``hh'' = hours (0:23) and ``mm'' = minutes (0:59) |
increasing |
calculate elapsed minutes across multiple days |
hours <- trunc(x / 100)
mins <- 100 * (x/100 - hours)
hours*60 + mins
A vector of elapsed minutes
Neil E. Klepeis
http://klepeis.net
http://klepeis.net