Re: [R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
on the prior sequence of draws. > > -- > David. > > On May 28, 2009, at 8:21 AM, jos matejus wrote: > >> Dear Ritchie and David, >> >> Thanks very much for your advice. I had thought of this potential >> solution, however it doesn't really fullfill my

Re: [R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
words, the next sample would be taken from a 5x5 matrix, and then a 4x4 matrix and so on until I have my 6 values. I will keep thinking! Cheers Jos 2009/5/28 David Winsemius : > > On May 28, 2009, at 6:33 AM, jos matejus wrote: > >> Dear R users, >> >> I have a matrix

[R] sample unique pairs from a matrix

2009-05-28 Thread jos matejus
Dear R users, I have a matrix of both negative and positive values that I would like to randomly sample with the following 2 conditions: 1. only sample positive values 2. once a cell in the matrix has been sampled the row and column of that cell cannot be sampled from again. #some dummy data set