View source: R/extractSubList.R
extractSubList | R Documentation |
Extracts a named element from a list of lists.
extractSubList(xs, element, element.value, simplify = TRUE, use.names = TRUE)
xs |
[ |
element |
[ |
element.value |
[any] |
simplify |
[ |
use.names |
[ |
[list
| simplified vector
| matrix
]. See above.
xs = list(list(a = 1, b = 2), list(a = 5, b = 7)) extractSubList(xs, "a") extractSubList(xs, "a", simplify = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.