I have a list of data frame, for each list, I have a name for it, which is the USERID, the following is a sample of the list:
$'AAAAAA'
AA BB CC
a b 1
c d 2
e f 3
S'BBBBBB'
AA BB CC
g h 1
i j 2
k l 3
My question is how to convert this list into a data frame which has a new column showing the USERID, like the below sample:
AA BB CC USERID
a b 1 AAAAAA
c d 2 AAAAAA
e f 3 AAAAAA
g h 1 BBBBBB
i j 2 BBBBBB
k l 3 BBBBBB
Any Idea how it could be done. Thank you so much in advance