## Efficiently create derangement of a vector in R

I'm looking into a way of efficiently creating a derangement (and conversely specific permutations) of a vector in R.
As far as I've seen, there's no base function that does that and also there's not much about it here on SO.
An obvious start is sam...

more
»