permutations (version 1.0-4)

derangement: Tests for a permutation being a derangement

Description

A derangement is a permutation which leaves no element fixed.

Usage

is.derangement(x)

Arguments

x

Object to be tested

Value

A vector of Booleans corresponding to whether the permutations are derangements or not.

See Also

id

Examples

Run this code
# NOT RUN {
is.derangement(rperm(16,4))
# }

Run the code above in your browser using DataCamp Workspace