Description Usage Arguments Value Examples
permute a vector cyclically
1 | permute_cyclic(v, n = 1)
|
v |
the vector to permute |
n |
the number of steps to cycle the vector |
the permuted vector
1 2 3 | cycle_n(v = 1:5)
cycle_n(v = 1:5, n = 3)
cycle_n(v = 1:5, n = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.