'Unlist a list of dataframes in R [duplicate]

I have a list of dataframes that I have created using

list_dataframes = list(dataframe_1, dataframe_2...)

And now I wonder how to unlist this list.

I have searched for it and found this solution:

list2env(list_dataframes ,.GlobalEnv)

in this old question: Unlist a list of dataframes

However, when using that solution, the following error arises:

Error in list2env(list_dataframes, .GlobalEnv) : 
  names(x) must be a character vector of the same length as x

Any idea why it's happening?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source