[R] How to create all pairs

alad abhimanyulad at gmail.com
Tue May 26 01:26:54 CEST 2009


Hi,

I have:
i = c(1,2,3)
j = c(4,5,6)

How do I create a matrix of all pairs?
i.e.
1,4
1,5
1,6
2,4
:

Thanks!


-- 
View this message in context: http://www.nabble.com/How-to-create-all-pairs-tp23714659p23714659.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list