Displaying 2 results from an estimated 2 matches for "match0".
Did you mean:
match
2007 Apr 12
1
zoo merge() method
...s and
attempted to get at this by merging the two time series (by union),
interpolating the NAs, and finally, subtracting one vector from the
other. The problem is that I can not combine the two zoo time series
objects using the merge() or cbind() functions. I get the following
error:
Error in z[match0(index(a), indexes), ] <- a[match0(indexes, index(a))]
:
number of items to replace is not a multiple of replacement
length
The input/output from a recent R Console session might help, so I've
included it as follows:
> summary(creek.temperature)
Index c...
2006 Nov 23
1
Problem with as.ts(zoo-object)
...1, Windows XP)
> test
1994-05-10 1994-06-09 1994-07-09
0.0024943889 0.0024881824 0.0006955831
> str(test)
atomic [1:3] 0.002494 0.002488 0.000696
- attr(*, "index")=Class 'Date' num [1:3] 8895 8925 8955
> is.regular(test)
[1] TRUE
> as.ts(test)
Error in z[match0(index(a), indexes), ] <- a[match0(indexes, index(a))]
:
number of items to replace is not a multiple of replacement
length
> traceback()
7: FUN(X[[1]], ...)
6: lapply(args, f, ret.zoo = retclass %in% c("list", "data.frame"))
5: merge.zoo(zoo(coredata(x), tt), zoo(...