Description Usage Arguments Details Value References Examples
Create a list with k
and v
elements that is useful for
explicit iteration
1 2 3 4 |
x |
object such as vector or list to separate into key value pairs |
... |
additional arguments |
No magic here, just something simple to convert x
into a list of
lists. Each element of x
is broken into a list with elements k
(key) and v
(value). See examples.
For many cases, key-value iteration can be done with *apply
or
paste
functions. This is made to be explicit and work on a variery of
objects.
A named list of list; each element of x
becomes a one element list
with elements k
and v
representing the keys and values
http://stackoverflow.com/questions/18572921/for-loop-in-r-with-key-value]
http://stackoverflow.com/questions/4500106/iterate-over-key-value-pair-from-a-list]
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.