listExtract: Extract the values from each entry in a list of vectors at a...

View source: R/toolbox.R

listExtractR Documentation

Extract the values from each entry in a list of vectors at a specific index

Description

Extract the values from each entry in a list of vectors at a specific index

Usage

listExtract(x, pos)

Arguments

x

A list, each item of the list should have equal length.

pos

A integer, the position to extract from each entry in the list.

Value

A list.

Examples

listExtract(list(col1 = c(1, 2, 3, 4, 5), col2 = c("a", "b", "c", "d", "e")), 3)

toolbox documentation built on Sept. 22, 2022, 1:09 a.m.

Related to listExtract in toolbox...