I have several data sets, which begin early in 2002 and run until
yesterday.  They do not have observations every day.  For example:
> xd1[1:10]
2002-02-25 2002-02-26 2002-02-28 2002-03-01 2002-03-04 2002-03-05 2002-03-07
         7          8          1          9         12          3          5
2002-03-08 2002-03-11 2002-03-12
         7         10          5
>


I want to set up zoo series which has every day from 2002-01-01
through yesterday.  There should be zeros on the "non appearing" dates
and the previously seen values on the appearing dates.

I've tried union and merge, but they didn't seem to work correctly.

Thank you in advance,
Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com

______________________________________________
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