Learn R Programming

dateutils (version 0.1.5)

get_from_list: Get from list

Description

Retrieve object `what` from `lst`

Usage

get_from_list(lst, what)

Arguments

lst

list

what

object to retrieve (by name or index)

Value

Element of the list indicated

Examples

Run this code
# NOT RUN {
get_from_list(list("a" = "alpha", "b" = c(1,2,3)), "a") # "alpha"
# }

Run the code above in your browser using DataLab