This is mostly useful in the context of purrr::map pipelines.

select_by_position(x, position)

Arguments

x

A vector.

position

The position to select out.

Value

The vector at the given index.

Examples

select_by_position(c(1,2,3), 2)
#> [1] 2