Can lists be created that name themselves based on input object names?

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

Leave a Comment