rotateback: Cyclically shift a vector one place to the right

rotatebackR Documentation

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)

Arguments

v

The vector to shift

Details

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

Value

The rotated vector

Author(s)

G P Nason

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!

wavethresh documentation built on Nov. 16, 2022, 5:16 p.m.