[R] newby problem - concatenate lists

Thomas Lumley tlumley at u.washington.edu
Fri Sep 19 16:03:02 CEST 2003


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




More information about the R-help mailing list