View source: R/Helper_functions.R
array_counter | R Documentation |
Cycle through n-dimensional array indices
array_counter(count, dims)
count |
The counter (0-based) |
dims |
The sizes of the dimension |
Cycles through all indices of an n-dimensional array. The first dimension moves fastest. The counter is 0-based and the output is 0-based as well.
An integer vector of the same length as dim
, with 0-based indices
Holger Hoefling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.