I have three data frames: df1
, df2
, df3
.
I want to merge them into a list:
dataframes <- list(df1, df2, df3)
How can I use the names of each data frame for their corresponding list element names?
So that instead of this:
> names(dataframes)
[1] "" "" ""
I get this:
> names(dataframes)
[1] "df1" "df2" "df3"