circshift {cellmigRation} | R Documentation |
Circularly shift the elements in an array by a user-defined number of positions. This emulates the behavior of the corresponding Matlab Circhsift function.
circshift(x, n = 1)
x |
a character, numeric, or logical vector with at least n + 1 elements |
n |
an integer corresponding to the number of positions for the shift |
a vector corresponding to x (same size, same class), whose elements have been shifted
Damiano Fantini, damiano.fantini@gmail.com
https://www.data-pulse.com/dev_site/cellmigration/
cellmigRation:::circshift(seq(1,10,by=1), -2)