insert | R Documentation |
Given a permutation and two positions i, j, move item in position i to position j
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
insert(c(1,2,3,4,5),5,2)
insert(c(1,2,3,4,5),2,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.