Description Usage Arguments Value Examples
Given a permutation and two positions i, j, move item in position i to position j
1 | insert(perm, i, j)
|
perm |
a permutation |
i |
position of the permutation |
j |
position of the permutation |
The permutation in the input in which th eoperation has been applied
1 2 |
Loading required package: Rcpp
[1] 1 2 5 3 4
[1] 1 3 4 5 2 NA 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.