I have a list with five different elements inside. e.g.
my_list
# $obj1
# [1] 1 2 3 4 5
#
# $obj2
# [1] "XYZ"
#
# $obj3
# [1] "g" "f" "e" "d"
I would like to create a let's say txt file that will print ALL values in one column, and the column next to it will be the EXACT NAME of the element/group that it belonged to. e.g.
I've tried some methods like un-listing, but no luck getting exactly what I want. Would appreciate any help!