Description Usage Arguments Value Examples
Returns the n
th item of an iterator
after advancing the
iterator n
steps ahead. If the iterator
is entirely consumed,
the default
value is returned instead. That is, if either n >
length(iterator)
or n
is 0, then the iterator
is consumed.
1 |
iterator |
an iterator object |
n |
The location of the desired element to return |
default |
The value to return if iterable is consumed, default is NA |
The nth element of the iterable or the default value
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[1] 5
[1] "e"
[1] NA
[1] "foo"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.