rotateback | R Documentation |
Cyclically shifts the elements of a vector one place to the right. The right-most element becomes the first element.
rotateback(v)
v |
The vector to shift |
Subsidiary function used by the av.basis
function which is the R function component of the
AvBasis.wst
function.
The rotated vector
G P Nason
#
# Here is a test vector
#
v <- 1:10
#
# Apply this function
#
rotateback(v)
#[1] 10 1 2 3 4 5 6 7 8 9
#
# A silly little function really!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.