Pretty trivial task but couldn't find the answer and struggling with getting proper solution.
I want to combine lots of different variables(lists) containing unequal amount of string data into single data.frame object where first column gets the variable name and second it's assigned values.
E.g.
Variable_1
name
1 actor_id
2 first_name
3 last_name
4 last_update
Variable_2
name
1 address_id
2 address
3 address2
4 district
5 city_id
6 postal_code
7 phone
8 last_update
Expectd output:
1 Variable_1 actor_id
2 Variable_1 first_name
3 Variable_1 last_name
4 Variable_1 last_update
5 Variable_2 address_id
6 Variable_2 address
7 Variable_2 address2
8 Variable_2 district
9 Variable_2 city_id
10 Variable_2 postal_code
11 Variable_2 phone
12 Variable_2 last_update
i bet there must be multiple aproaches. thanks for the tips in advance!