powered by
This is pretty much an equivalent of calling `[[` on a list, but allows for cleaner use inside pipes.
list_extract(in_list, ...)
The selected list element.
The list to extract an element from.
A selection of what to extract. Must be a single element.
my_list <- list(rnorm(20), data.frame(x = 1:10, y = rnorm(10)), letters[1:5]) list_extract(my_list, 3)
Run the code above in your browser using DataLab