Displaying 1 result from an estimated 1 matches for "subtim".
Did you mean:
subtit
2009 Aug 13
3
Finding minimum of time subset
...e quarter hour, but not how to keep only the minimum time for each quarter hour.
For example:
mytime<-c("12:00:00","12:00:05","12:15:05","12:15:06","12:20:00","12:30:01","12:45:01","13:00:00","13:15:02")
subtime<-grep(pattern="[[:digit:]]+[[:punct:]]00[[:punct:]][[:digit:]]+|[[:digit:]]+[[:punct:]]15[[:punct:]][[:digit:]]+|[[:digit:]]+[[:punct:]]30[[:punct:]][[:digit:]]+|[[:digit:]]+[[:punct:]]45[[:punct:]][[:digit:]]+",mytime)
mytime[subtime]
[1] "12:00:00" "12:00:05" &q...