Accessing the same named list elements of a list of lists

Share:

Description

Accessing the same named list elements of a list of lists

Usage

1
x %[[% n

Arguments

x

- a list of sublists with same elements in each sublist

n

- name of element to be accessed from each sublist

Value

list of elements of name n in each sublist

References

credits to @kohske, Accessing same named list elements of the list of lists in R, http://stackoverflow.com/questions/5935673/accessing-same-named-list-elements-of-the-list-of-lists-in-r/5936077#5936077