On Mon, Jul 26, 2010 at 2:17 PM, Erin Hodgess <erinm.hodg...@gmail.com> wrote: > Dear R People: > > I would like to combine a zoo object with some observations at the end. > > Here is the set up: > >> xgh > 2010-06-15 2010-06-16 2010-06-17 2010-06-18 2010-06-19 2010-06-20 2010-06-21 > 5 6 1 5 0 0 13 > 2010-06-22 2010-06-23 2010-06-24 2010-06-25 2010-06-26 2010-06-27 2010-06-28 > 9 6 4 6 0 0 9 > 2010-06-29 2010-06-30 2010-07-01 2010-07-02 2010-07-03 2010-07-04 2010-07-05 > 15 10 5 6 0 0 0 > 2010-07-06 2010-07-07 2010-07-08 2010-07-09 2010-07-10 > 12 8 3 6 0 >> xs > [1] "2010-06-15" "2010-06-16" "2010-06-17" "2010-06-18" "2010-06-19" > [6] "2010-06-20" "2010-06-21" "2010-06-22" "2010-06-23" "2010-06-24" > [11] "2010-06-25" "2010-06-26" "2010-06-27" "2010-06-28" "2010-06-29" > [16] "2010-06-30" "2010-07-01" "2010-07-02" "2010-07-03" "2010-07-04" > [21] "2010-07-05" "2010-07-06" "2010-07-07" "2010-07-08" "2010-07-09" > [26] "2010-07-10" "2010-07-11" "2010-07-12" "2010-07-13" "2010-07-14" > [31] "2010-07-15" >> zoo(c(xgh,-0.7,3.6,3.7,3.4,3.2),order=xs) > Error in rbind.zoo(...) : indexes overlap >> > > What am I doing wrong, please? I'm sure that it's something simple. >
please use dput when posting to r-help: dput(xgh) ______________________________________________ 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.