Here is a particular way to solve the problem:

> test3 <- seq(from=as.Date("1/1/2000","%m/%d/%Y"),to=as.Date("1/3/2000",
+ "%m/%d/%Y"),length=3)
> test3
[1] "2000-01-01" "2000-01-02" "2000-01-03"
> zoo(table(dog.df$V1,dog.df$V2)[,1],order=test3)
2000-01-01 2000-01-02 2000-01-03
         1          1          0
> cat.zoo <- zoo(table(dog.df$V1,dog.df$V2)[,1],order=test3)
> dog.zoo <- zoo(table(dog.df$V1,dog.df$V2)[,1],order=test3)
> dog.zoo <- zoo(table(dog.df$V1,dog.df$V2)[,2],order=test3)
> tree.zoo <- zoo(table(dog.df$V1,dog.df$V2)[,3],order=test3)
> dog.zoo
2000-01-01 2000-01-02 2000-01-03
         1          0          1
> tree.zoo
2000-01-01 2000-01-02 2000-01-03


thanks though!
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