list_extract | R Documentation |
This is pretty much an equivalent of calling '[[' on a list, but allows for cleaner use inside pipes.
list_extract(in_list, ...)
in_list |
The list to extract an element from. |
... |
A selection of what to extract. Must be a single element. |
The selected list element.
my_list <- list(rnorm(20), data.frame(x = 1:10, y = rnorm(10)), letters[1:5]) list_extract(my_list, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.