Description Usage Arguments Value Author(s) References Examples
View source: R/all_functions_v8.R
Circularly shift the elements in an array by a user-defined number of positions. This emulates the behavior of the corresponding Matlab Circhsift function.
1 | 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/
1 | cellmigRation:::circshift(seq(1,10,by=1), -2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.