RE: [R] newby problem - concatenate lists

2003-09-19 Thread Wiener, Matthew
c(x,y) will do it. Hope this helps -Matt -Original Message- From: Axel Benz [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: [R] newby problem - concatenate lists Hi, a very basic question: What ist the easiest way in R to concatenate

RE: [R] newby problem - concatenate lists

2003-09-19 Thread Liaw, Andy
Lists are just like vectors: x-list(c(1,2)) y-list(c(3,4)) c(x,y) [[1]] [1] 1 2 [[2]] [1] 3 4 HTH, Andy -Original Message- From: Axel Benz [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: [R] newby problem - concatenate lists

Re: [R] newby problem - concatenate lists

2003-09-19 Thread Uwe Ligges
Axel Benz wrote: Hi, a very basic question: What ist the easiest way in R to concatenate two lists of vectors? E.g, I have x-list(c(1,2)) y-list(c(3,4)) and I want to receive list(c(1,2),c(3,4)) What about c(x, y) ??? Uwe Ligges thank you! Axel

Re: [R] newby problem - concatenate lists

2003-09-19 Thread Thomas Lumley
On Fri, 19 Sep 2003, Axel Benz wrote: Hi, a very basic question: What ist the easiest way in R to concatenate two lists of vectors? E.g, I have x-list(c(1,2)) y-list(c(3,4)) and I want to receive list(c(1,2),c(3,4)) c(x,y) -thomas __