Rdocumentation
powered by
Learn R Programming
crunch (version 1.12.2)
selectFrom: Generic List Element Extractor
Description
Generic List Element Extractor
Usage
selectFrom(key, xlist, ifnot = NA, simplify = TRUE)
Arguments
key
character naming the key(s) to extract. Can traverse list elements by separating them with
$
.
xlist
list containing other lists from which you want to extract
ifnot
what to return if the key is not found in a given xlist element
simplify
logical, passed to sapply internally
Value
the requested element(s). If length(key)>1, a named list of those elements