Hello all,
I am trying to merge a set of 11 data sets from years 2002-2012. Each file is contained in the following path: C:\Users\Daniel\Desktop\RA\Landmines\Daniel\CDB\me rge
The files are named in the following manner: raw_`year'.xlsx. I am wanting to merge only the sheets in their respective files called "C_`year'_E(1)". I want to merge them into one panel. However, the year values themselves are not contained within the file, but only the file name itself. All files contain the same variables and identifiers.
I am only familiar with merging two files at a time and have not constructed a multi-year panel before, and so I am struggling with this quite a bit. Any tips would be appreciated.
Thanks!
I am trying to merge a set of 11 data sets from years 2002-2012. Each file is contained in the following path: C:\Users\Daniel\Desktop\RA\Landmines\Daniel\CDB\me rge
The files are named in the following manner: raw_`year'.xlsx. I am wanting to merge only the sheets in their respective files called "C_`year'_E(1)". I want to merge them into one panel. However, the year values themselves are not contained within the file, but only the file name itself. All files contain the same variables and identifiers.
I am only familiar with merging two files at a time and have not constructed a multi-year panel before, and so I am struggling with this quite a bit. Any tips would be appreciated.
Thanks!
Comment