Re: [R] Permutation matrix

2011-11-18 Thread Bert Gunter
1. We don't do homework on this list. 2. "... which is of the size 10 by 2^10." No it isn't. (Hint: Many of the permutations are not distinct). -- Bert On Fri, Nov 18, 2011 at 2:02 PM, Gyanendra Pokharel wrote: >  Hi all, > I have a set of elements (1, 1, 0,1,1,0,1,0,1,1) with ten elements. I

[R] Permutation matrix

2011-11-18 Thread Gyanendra Pokharel
Hi all, I have a set of elements (1, 1, 0,1,1,0,1,0,1,1) with ten elements. I have to construct the permutation matrix of this set which is of the size 10 by 2^10. Can some one help how is this possible? Is there is a particular function in R or I need to make function? Best [[alternativ