time series - Hourly Date Sequence In R -
i trying produce sequence of dates @ hourly intervals. example tried following:
> seq(as.date("1912-02-24 23:00:00"), as.date("1912-02-25 08:32:00"), by="hour") which produces error, yet works fine by= year, month, day.
the documentation seq.posixt {base} states should work hour, sec, min, etc, yet of these produce error.
> ?seq.posixt thanks in advance.
well, don't give answer ;-)
what about:
seq(as.posixct("1912-02-24 23:00:00"), as.posixct("1912-02-25 08:32:00"), by="hour") (also works as.posixlt).
Comments
Post a Comment