Learn R Programming

cooltools (version 2.4)

cshift: Circularly shift each dimension of an array

Description

Circulates each dimension of an array. This routine is identical to circshift, but works with arrays up to 5 dimensions.

Usage

cshift(x, s)

Value

Returns a vector or array of the same shape as x.

Arguments

x

vector or array (up to rank 5)

s

scalar, if x is a vector, or a vector of length matching the rank of x, if x is an array

Author

Danail Obreschkow