search for: td4220850

Displaying 1 result from an estimated 1 matches for "td4220850".

2012 Mar 24
2
expand.grid (the half!)
Dear all, I am using expand.grid for calculating all the possible values between four pairs. I would like to ask you if it is possible to filter the result out, so to keep all unique pairs. In my algorithm the input c(1,2) produces the same results as the c(2,1) so for example in the following code below > expand.grid(c(1,2,3),c(1,2,3))   Var1 Var2 1    1    1 2    2    1 3    3    1 4