Description Usage Arguments Value Examples

View source: R/extractSubList.R

Extracts a named element from a list of lists.

1 2 | ```
extractSubList(xs, element, element.value, simplify = TRUE,
use.names = TRUE)
``` |

`xs` |
[ |

`element` |
[ |

`element.value` |
[any] |

`simplify` |
[ |

`use.names` |
[ |

[`list`

| simplified `vector`

| `matrix`

]. See above.

1 2 3 | ```
xs = list(list(a = 1, b = 2), list(a = 5, b = 7))
extractSubList(xs, "a")
extractSubList(xs, "a", simplify = FALSE)
``` |

berndbischl/BBmisc documentation built on Nov. 29, 2017, 5:10 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.