Retrieves the specified key from each element of a list.
Usage
get.key(lst, key, as.list = F)
Arguments
- lst
A list of objects.
- key
The key to extract.
- as.list
Logical; if TRUE, returns a list (default FALSE).
Value
A vector or list of values corresponding to the key from each element.