Hello,
Instead of string manipulation you should think of POSIXt objects. And
maybe ?seq.POSIXt will help.
first <- strptime("2011-10-12 10:59:00","%Y-%m-%d %H:%M:%S")
last <- strptime("2011-10-12 11:13:00","%Y-%m-%d %H:%M:%S")
seq(first, last, by = "5 min")
Hope this helps,
Rui Barradas
Dear all,
in my code I have written the following list
TimeFramesShort <-list(c(strptime("2011-10-12 10:59:00","%Y-%m-%d
%H:%M:%S"),strptime("2011-10-13 11:02:00","%Y-%m-%d %H:%M:%S")) #
rest items were truncated
I was wondering if could somehow take the first element of the lis
2 matches
Mail list logo