Edit: needs to be in base R
Here is the starting point:
the_list = list()
the_list$a = 1
the_list$b = 2
...
Ultimately after this, my goal equivalent would like something like this:
data.frame(variable = c('a', 'b'), #...
value = c(1, 2)) #...
I tried data.frame(t(data.frame(the_list)))
but returned 0 rows. How can I achieve this?