enum | R Documentation |
Aids enumeration and merging (via rbind_loop
) in
loops: adds numbers to a vector input, and indicates loop start for
rbind_loop
.
enum(items, hush = FALSE, enumerate = TRUE)
items |
The items to be enumerated in the loop. |
hush |
Logical. If |
enumerate |
Logical. If |
Vector with numbers added (if so set).
rbind_loop
my_vector = c('aa', 'bb', 'cxyz', 'last') for (item in enum(my_vector)) { print(item) } # just to show what enum() returns enum(my_vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.