Skip to content
Prev 319624 / 398502 Next

Combinations

At Fri, 15 Mar 2013 09:22:15 -0400,
Amir wrote:
I think you are looking for expand.grid:

expand.grid(1:3, 10:13)
   Var1 Var2
1     1   10
2     2   10
3     3   10
4     1   11
...

Neal