Not much of a shortcut, but you can do this:
lapply(x, `[[`, 1)
# [[1]]
# [1] 1
#
# [[2]]
# [1] 3
#
# [[3]]
# [1] 5
More Related Contents:
- The difference between bracket [ ] and double bracket [[ ]] for accessing the elements of a list or dataframe
- Simultaneously merge multiple data.frames in a list
- Combine a list of data frames into one data frame by row
- Convert a list to a data frame
- Can lists be created that name themselves based on input object names?
- Unlist data frame column preserving information from other column
- Create a data.frame where a column is a list
- Read all files in a folder and apply a function to each data frame
- do.call(rbind, list) for uneven number of column
- How to correctly use lists?
- Convert named list to vector with values only
- Append an object to a list in R in amortized constant time, O(1)?
- How can I remove an element from a list?
- How to flatten a list of lists?
- Append value to empty vector in R?
- Merge Two Lists in R
- Combine/merge lists by elements names
- R: Obtaining Rules from a Function
- How to index an element of a list object in R
- Delete a column in a data frame within a list
- Converting a list of data frames into individual data frames in R [duplicate]
- Remove NULL elements from list of lists
- Is there a logical way to think about List Indexing?
- What is difference between dataframe and list in R?
- Convert list to data frame while keeping list-element names
- merging a large list of xts objects
- Creating a named list from two vectors (names, values)
- Duplicate list names in R
- in r combine a list of lists into one list
- How to combine two lists in R