On 11/26/2012 10:12 PM, Jerry wrote: > Hello, > > There is a vector > > A=['a', 'b', 'c', 'd','e'] > > I would like to make a square matrix of all paiwise interactions of this vector: > > > a b c d e > a aa ba ca da ea > b ab bb cb db eb > c ac bc cc dc ec > d ad bd cd dd ed > e ae bd ce de ee > > However, nchoosek allow me to create only half of this matrix. >Is there any function to make all these possible interactions within "A"? >
Much easier to do this when your 'a','b', etc... are numerics, not chars or strings.
What is the reason of using strings for this? --Nasser