nth {tidyft} | R Documentation |
Extract the nth value from a vector
Description
Get the value from a vector with its position.
Usage
nth(v, n = 1)
Arguments
v |
A vector |
n |
A single integer specifying the position. Default uses |
Value
A single value.
Examples
x = 1:10
nth(x, 1)
nth(x, 5)
nth(x, -2)
[Package tidyft version 0.5.7 Index]