list.extract: Extract an element from a list or vector

Description Usage Examples

Description

Extract an element from a list or vector

Usage

1

Examples

1
2
3
x <- list(a=1, b=2, c=3)
list.extract(x, 1)
list.extract(x, 'a')

Example output

[1] 1
[1] 1

rlist documentation built on Sept. 5, 2021, 5:30 p.m.