Let's say that I want to generate a data frame which contains a column with is structured in the following format.
2011-08-01
2011-08-02
2011-08-03
2011-08-04
...
I want to know if it's possible to generate this data with the seq()
command.
Something like the following: (obviously doesn't work)
seq(2011-08-01:2011-08-31)
Would I instead have to use toDate and regex to generate this date in this specific format.
?seq
. – Uprise"zooreg"
class time series whose values are 1, 2, ..., 10 for 10 consecutive dates starting at 2011-08-01:library(zoo); z <- zooreg(1:10, as.Date("2011-08-01"))
. – Diep