[R] zoo: merging aggregated zoo-objects fails

2009-09-27 Thread gunnar.p
Dear all, I have several text files looking like this: 9063032 19700201 22:00 174.067 9063032 19700201 23:00 174.076 9063032 19700202 00:00 174.085 9063032 19700202 01:00 174.091 9063032 19700202 02:00 174.094 9063032 19700202 03:00 174.091 9063032 19700202 04:00 174.082 9063032 19

Re: [R] zoo: merging aggregated zoo-objects fails

2009-09-28 Thread gunnar.p
Hello Gabor, I just tried dput() and it seems that running aggregate deletes the following information from zoo objects: origin = structure(c(1, 1, 1970)) So before merging I added: chron(index(z),origin=c(1,1,1970))->index(z) which solves my problem. Is that behaviour of aggregate.zoo intended

Re: [R] zoo: merging aggregated zoo-objects fails

2009-09-28 Thread gunnar.p
Hello Gabor, thanks for your reply. Please excuse the insufficient description of my problem. I hope this one is better: #Importing my data works basically like this dts <- dates(c("19700201","19700201","19700201","19700202","19700202"),format="ymd") tms <- times(paste(c("21:00", "22:00", "23:00"