Circular rotation of a numeric vector.

USAGE:

wavRotateVector(1:5,-2)

DESCRIPTION:

Rotates (circularly shifts) a numeric vector by the specified shift.

REQUIRED ARGUMENTS:

x
A numeric vector.
shift
An integer specifying the amount to shift the numeric vector. A negative shift implies an advance or circular permutation to the left.

VALUE:

result
A vector containing the result.

SEE ALSO:

.

EXAMPLES:

    ## rotate a vector forwards by 3 places
    wavRotateVector( 1:10, 3 )