[R] Combinations

Amir
Fri, 15 Mar 2013 13:22:15 -0000

Hi every one,

I have two sets T1={c1,c2,..,cn} and T2={k1,k2,...,kn}.
How can I find the sets as follow:

(c1,k1), (c1,k2) ...(c1,kn)  (c2,k1) (c2,k2) .... (c2,kn) ... (cn,kn)

Thanks.
Amir

--
__________________________________________________________________________
  Amir Darehshoorzadeh             |  Computer Engineering Department
  PostDoc Fellow                   |  University of Ottawa, PARADISE LAb
  Email: adarehsh at uottawa.ca       |  800 King Edward Ave
  Tel: -                           |  ON K1N 6N5, Ottawa - CANADA