Learn R Programming

rlist (version 0.4.6.2)

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

Description

Extract an element from a list or vector

Usage

list.extract()

Arguments

Examples

Run this code
# NOT RUN {
x <- list(a=1, b=2, c=3)
list.extract(x, 1)
list.extract(x, 'a')
# }

Run the code above in your browser using DataLab