enum {neatStats} | R Documentation |
Enumerate
Description
Aids enumeration and merging (via rbind_loop
) in
loops: adds numbers to a vector input, and indicates loop start for
rbind_loop
.
Usage
enum(items, hush = FALSE, enumerate = TRUE)
Arguments
items |
The items to be enumerated in the loop. |
hush |
Logical. If |
enumerate |
Logical. If |
Value
Vector with numbers added (if so set).
See Also
Examples
my_vector = c('aa', 'bb', 'cxyz', 'last')
for (item in enum(my_vector)) {
print(item)
}
# just to show what enum() returns
enum(my_vector)
[Package neatStats version 1.13.3 Index]