Let\'s say I have a list like this:
x = list(list(1,2), list(3,4), list(5,6))
I would like a list that contains only the first elements of
Another possibility uses the nice purrr library:
purrr
library(purrr) map(x, 1)