[R] Possible pair of 2 binary vectors

Ron Michael ron_michael70 at yahoo.com
Sat Aug 9 11:46:42 CEST 2014


Let say I have 2 binary vectors of length 'd', therefore both these vectors can take only 0-1 values. Now I want to simulate all possible pairs of them. Theoretically there will be 4^d possible pairs.

Is there any R function to directly simulate them?

Thanks for your help.

More information about the R-help mailing list