This function pairs elements of vectors or lists with their indices. The
output
is meant to be used in a for loop, and each element extracted with the
ind(), val(), or val1() functions. A slightly lighter weight
alternative to itertools::enumerate()
Usage
enumerateit(..., zeroIndexed = FALSE)
Value
A list of lists, where each inner list contains an index and the
corresponding elements from the input vectors or lists.
Arguments
...
Vectors or lists to be enumerated.
zeroIndexed
A logical indicating whether indexing should start from
zero. Default is FALSE.