Skip to content

Lexical Permutation Algorithm in R

2 messages · Rory.WINSTON at rbs.com, robin hankin

#
Rory

there are several packages that perform this.

I would use permn() of the  combinat library, then, if
lexicographical order is important, sort it  explicitly.

HTH

rksh
Rory.WINSTON at rbs.com wrote: