[R] make matrices as many as possible with a constraint

2014-12-11 Thread Kathryn Lord
Dear R users, I'd like to make 4 by 7 matrices as many as possible with natural numbers 1 through 28 such that each matrix have different elements of each column. For example, simply here is one a1 - matrix(1:28, 4,7) a1 [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,]159 13 17

Re: [R] make matrices as many as possible with a constraint

2014-12-11 Thread David Winsemius
On Dec 11, 2014, at 4:38 PM, Kathryn Lord wrote: Dear R users, I'd like to make 4 by 7 matrices as many as possible with natural numbers 1 through 28 such that each matrix have different elements of each column. I was tempted to respond: We're very sorry. The Soduko Challenge Contest was