[R-SIG-Finance] A zoo question: what does this warning mean?

Gabor Grothendieck ggrothendieck at gmail.com
Sun Apr 18 22:36:37 CEST 2010


I assume you got a warning rather than an error.  It relates to the
column names that are produced.   You could also try this:

   do.call(merge, lapply(1:100, make.a.column))

Need a reproducible example to say more about the specific problem.


On Sun, Apr 18, 2010 at 4:27 PM, Ajay Shah <ajayshah at mayin.org> wrote:
> I'm producing a zoo object through a for loop which repeatedly cbinds
> one more object to a main object X:
>
>  X <- NULL
>  for (i in 1:100) {
>    X <- cbind(X, make.a.column(i))
>  }
>
> Everything seems to be fine. But when the loop finishes, I get this error:
>
>  In merge.zoo(..., all = all, fill = fill, suffixes = suffixes, retclass = "zoo") :
>    length of suffixes and does not match number of merged objects
>
> What does this mean? Should I be worried?
>
> --
> Ajay Shah                                      http://www.mayin.org/ajayshah
> ajayshah at mayin.org                             http://ajayshahblog.blogspot.com
> <*(:-? - wizard who doesn't know the answer.
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.
>



More information about the R-SIG-Finance mailing list