[R] combining lists of pairs

From: <olvrmrs_at_aol.com>
Date: Thu, 17 Jul 2008 17:31:49 -0400


Hi everybody,

This has been causing me some trouble:

I want to combine several lists of pairs into a single?vector but keep the pairs together. The lists are of the form:
(1)?x1 x2 x3... N?
(2) y1 y2 y3..? N

I would like to keep it this way, simply appending one list to another, e.g.
(1) x1i x2i... x1j x2j... N
(2) etc.

A?method like c(...) does not achieve this. It creates a single list, disregarding the pairs.

Is there a more efficient way of doing it?

Thanks!
Oliver Marshall

        [[alternative HTML version deleted]]



R-help_at_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. Received on Thu 17 Jul 2008 - 21:42:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jul 2008 - 23:31:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive