On Tue, 30 Jan 2007, Shubha Vishwanath Karanth wrote:

> 1.    The above rbind function for the zoo objects doesn't take care
> of the column names while merging. Example: Column 'a' of y1 is appended
> with column 'b' of y2. Why is this so?

We do not check the column names at all. This should probably be changed.

> How do I get rid of this?

Sort the columns by hand before calling rbind().

> 2.    In the rbind function, I have given y2 first and then y1. But in
> the appended data, I see the data corresponding to y1 first and then of
> y2. Is this because of ordering of the index elements of the zoo
> objects?

Yes, recall that the second "o" in "zoo" means "ordered".

Best,
Z

______________________________________________
R-help@stat.math.ethz.ch 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