Learn R Programming

cayleyR (version 0.2.1)

shift_right_simple: Shift State Right (Simple)

Description

Simple cyclic right shift without coordinate tracking.

Value

Integer vector with elements shifted right by one position

Arguments

state

Integer vector representing the current permutation state

Examples

Run this code
shift_right_simple(1:5)

Run the code above in your browser using DataLab