Create a word object of random permutations
rperm(n,r,moved=NA)
Number of permutations to create
Size of permutations
Integer specifying how many elements can move (that is, how many elements do not map to themselves), with default NA meaning to choose a permutation at random. This is useful if you want a permutation that has a compact cycle representation
NA
Returns an object of class word
word
size
# NOT RUN { rperm(30,9) as.cycle(rperm(30,9)) rperm(10,9,2) # }
Run the code above in your browser using DataCamp Workspace