Re: [R] combining vectors into list

2011-02-02 Thread Ivan Calandra
Hi, Try this: mapply(FUN=c, Row, Col, SIMPLIFY=FALSE) HTH, Ivan Le 2/2/2011 08:55, Lorenzo Cattarino a écrit : Hi R users I have these two vectors: Row<- sample(1:25, 10) Col<- sample(1:25, 10) Is there a way to combine them into a list, whose first component is a vector containing t

[R] combining vectors into list

2011-02-02 Thread Lorenzo Cattarino
Hi R users I have these two vectors: Row <- sample(1:25, 10) Col <- sample(1:25, 10) Is there a way to combine them into a list, whose first component is a vector containing the first element of Row and the first element of Col, the second component is a vector containing the second e