I want to put all the dataframes I have in a list format, so that I can merge all of them easily without typing the name of each dataframe and simply mentioning the list.
# importing netcdf files
files_so2 = list.files( pattern = "*.nc" )
# reading each netcdf as a dataframe
for (i in 1:length( files_so2 ) ) assign(
files_so2[i], as.data.frame(
brick( files_so2[i] ), xy = T ) )
# I want to put all the files in the list so that I can perform the following
data <- Reduce ( function(x,y) {merge( x = x, y = y , by = c("x" , "y") )} , list_data)
I have 72 dataframes imported in R , now would like to put all of them in a single list say list_data as mentioned in the code to perform merging.