WaveThresh Help

rotateback


Cyclically shift a vector one place to the right

DESCRIPTION

Cyclically shifts the elements of a vector one place to the right. The right-most element becomes the first element.

USAGE

rotateback(v)

REQUIRED ARGUMENTS

v
The vector to shift

OPTIONAL ARGUMENTS

None.

VALUE

The rotated vector.

SIDE EFFECTS

None

DETAILS

Subsidiary function used by the av.basis function which is the S function component of the AvBasis.wst function.

RELEASE

Version 3.6.0 Copyright Guy Nason

SEE ALSO

av.basis, AvBasis.

EXAMPLES

#
# 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!