Skip to content
Prev 277646 / 398506 Next

permutation within rows of a matrix

I must be missing something. What's wrong with

  t(apply(mat, 1, sample))

?

Peter Ehlers
On 2011-11-16 12:12, Gavin Simpson wrote: