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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -