Hello Stata users,
I am using Stata 17. I want to add observations and variables in a dataset A.
I have the following dataset A
For different cities and different time periods. I would like to add observations of other cities (that are not in the initial dataset) which I have in different .csv files (datasets B,C, etc..). For each city that I want to add I have the following variables
1) the dates
2) the urbanname
3) the urbancode
4) other variables which I do not yet have in my initial dataset but that I want to add
What would be your advice on how to proceed ? I thought of doing it with R but the dataset A does not open well in RStudio and the variable Date is not well imported.
Ideally, i'd like to use a loop as I have 17 .csv files, each containing the information of a city.
Thank you very much for your help,
Benoît
I am using Stata 17. I want to add observations and variables in a dataset A.
I have the following dataset A
Code:
Date Year urbanname urbancode etc.. 2010m1 2010 Beijing 1029 etc. 2010m2 2010 Beijing 1029 ... 2010m3 2010 Beijing 1029 ... .... 2015m1 2015 Paris 1030 etc
1) the dates
2) the urbanname
3) the urbancode
4) other variables which I do not yet have in my initial dataset but that I want to add
What would be your advice on how to proceed ? I thought of doing it with R but the dataset A does not open well in RStudio and the variable Date is not well imported.
Ideally, i'd like to use a loop as I have 17 .csv files, each containing the information of a city.
Thank you very much for your help,
Benoît
Comment