Learn R Programming

PerMallows (version 1.1)

identity.permutation: Generate identity the permutation

Description

This function generates the identity permutation of a given number of items

Usage

identity.permutation(perm.length)

Arguments

perm.length
number of items in the permutation

Value

  • the identity permutation of the specified number of items

Examples

Run this code
identity.permutation(3)
identity.permutation(7)

Run the code above in your browser using DataLab