View source: R/A003_loopIndex.R
loopIndex | R Documentation |
Calculates i modulo n, but returns numbers in the range from 1 to n instead of 0 to n-1.
loopIndex(i, n)
i |
a vector |
n |
a number |
Returns the vector i modulo n in the range 1 to n
loopIndex(1:10,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.