Description Usage Arguments Details Value Note Author(s) See Also Examples
Move the position of an element in a vector.
1 | elrepos(x,i1,i2)
|
x |
A vector of unique values. |
i1,i2 |
The position (i1) in the vector of an element that should be ahead of the element in position i2. |
elrepos saves the element in position i1 of the vector x and removes that element from x. It then inserts the element that was in position i1 just before the element in position i2.
The vector x with the position of one element changed as above.
Currently this function is only useful to perform the position changing for the function spsort.
Jim Lemon
spsort
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.