permute is an R package for generating restricted permutations. Its original intention was for use with the vegan package to analyse multivariate models for ecological data.