Hello,
I have time series data whose days are not consecutive. I used timeSequence
(from = "4/1/2010", to = "31/12/2010", format = "% Y-% m-% d", FinCenter =
"GMT") to generate a vector of consecutive days , however I need not
consider Sunday as well join this vector to a data frame containing
incomplete dates, for example

Days    X1    X2
day 1   10     20
day 2    30    50
day 4    40     45
day 5    45     35
day 6    20     10

Then the above I add the day 3, so I look like this:

Days    X1    X2
day 1   10     20
day 2    30    50
day 3    NA   NA
day 4    40     45
day 5    45     35
day 6    20     10

Thanks

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to