The tidyverse
package tibble
has a function that can do this as well. Try out tibble::lst
tibble::lst(a1, a2, a3)
# $a1
# [1] 1
#
# $a2
# [1] 20
#
# $a3
# [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
More Related Contents:
- How do I make a list of data frames?
- The difference between bracket [ ] and double bracket [[ ]] for accessing the elements of a list or dataframe
- Convert a list to a data frame
- Access lapply index names inside FUN
- 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
- How to use reference variables by character string in a formula?
- Convert named list to vector with values only
- How can I remove an element from a list?
- How to flatten a list of lists?
- Merge Two Lists in R
- Access and preserve list names in lapply function
- R: Obtaining Rules from a Function
- How to index an element of a list object in R
- How to pass dynamic column names in dplyr into custom function?
- Converting a list of data frames into individual data frames in R [duplicate]
- Emulate split() with dplyr group_by: return a list of data frames
- Remove NULL elements from list of lists
- Is there a logical way to think about List Indexing?
- Convert list to data frame while keeping list-element names
- merging a large list of xts objects
- Appending a list to a list of lists in R
- Sum a list of matrices [duplicate]
- Creating a named list from two vectors (names, values)
- How can I extract elements from lists of lists in R?
- Numbers as column names of data frames
- Union of intersecting vectors in a list in R
- in r combine a list of lists into one list
- How to combine two lists in R