Skip to contents

Generate permutations

High-level functions for drawing one or more restricted permutations, or applying them directly to a vector.

shuffle() permute() permutator()
Unrestricted and restricted permutations
shuffleSet() as.matrix(<permutationMatrix>)
Generate a set of permutations from the specified design
permutations() print(<permutations>) as.matrix(<permutations>)
Permute a vector of data

Define and inspect permutation designs

Create permutation designs, count the possible permutations, and check designs for problems.

how() Within() Plots()
How to define a permutation design?
numPerms()
Number of possible permutations for a given object
check() summary(<check>)
Utility functions for permutation schemes

Complete enumeration and fixed-size partitions

Enumerate complete permutation sets or generate assignments to groups of fixed size.

allPerms() summary(<allPerms>) as.matrix(<allPerms>) as.allPerms()
Complete enumeration of all possible permutations
allPartitions() shufflePartition() shufflePartitionSet()
Generate random assignments to groups of fixed size

Developer tools

Supporting APIs for package authors and advanced users working with permutation designs.

Data

jackal
Mandible lengths of male and female golden jackals