Enumerate | R Documentation |
Enumerate a list or vector
Enumerate(x)
x |
A list or a vector |
A list of length x
with the following named values:
name
The name of x
at a given index
value
The value of x
at the corresponding index
For any given index i
in x
, all attempts to use the name
of the value of x
at i
will be made. If there is no name
(eg. nchar(x = names(x = x)[i]) == 0
), the index i
will be used
in its stead
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.