powered by
Aids enumeration and merging (via rbind_loop) in loops: adds numbers to a vector input, and indicates loop start for rbind_loop.
rbind_loop
enum(items, hush = FALSE, enumerate = TRUE)
Vector with numbers added (if so set).
The items to be enumerated in the loop.
Logical. If TRUE (default), prints "Loop started." when executed.
TRUE
Logical. If TRUE (default), adds numbering to the input vector (in item pairs, see Examples). If FALSE, returns the original input.
FALSE
my_vector = c('aa', 'bb', 'cxyz', 'last') for (item in enum(my_vector)) { print(item) } # just to show what enum() returns enum(my_vector)
Run the code above in your browser using DataLab