nth | R Documentation |
Get the value from a vector with its position.
nth(v, n = 1)
v |
A vector |
n |
A single integer specifying the position. Default uses |
A single value.
x = 1:10
nth(x, 1)
nth(x, 5)
nth(x, -2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.