I am using World Input-Output Data for multiple years (2000 - 2014) and try to load them into a large dataframe. Each file with the is called "WIOTyear_October16_ROW.RData" with "year" being the number for that specific year.
First, i created a list of files and loaded them in the Global environment.
WIOD_list <- list.files(pattern = "*.RData")
lapply(WIOD_list,load,.GlobalEnv)
Afterwards i wanted to use rbind to merch them all together. The problem I am facing is that each loaded data frame is called "wiot", no matter of the year, so in the lapply, each dataframe will be overwritten by the next one. In the end, i only have one data frame for the year 2014 called "wiot".
Is there a way of renaming each loaded dataset to wiot_year before applying the next one?