cshift {docore}R Documentation

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)

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

Value

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

Author(s)

Danail Obreschkow


[Package docore version 1.0 Index]