select_by_position: Quick function for mapping to select out list items

Description Usage Arguments Value Examples

View source: R/utility_functions.r

Description

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

Usage

1
select_by_position(x, position)

Arguments

x

A vector.

position

The position to select out.

Value

The vector at the given index.

Examples

1
select_by_position(c(1,2,3), 2)

rdocking/amlpmpsupport documentation built on Jan. 4, 2021, 7:09 a.m.