Hi, I am new to Stata. Suppose I would like to append dataset2 to dataset 1
dataset 1 reads:
dataset 2 reads:
my desired result:
I tried
and then
did not work. There was no error but dataset2 was not added below dataset1 Can you please help me? Thank you so much!
dataset 1 reads:
Name | Id | Age | Nationality |
A | 1 | 12 | USA |
B | 2 | 12 | UK |
C | 3 | 14 | Greece |
Name | Id | Age | Nationality |
A | 4 | 13 | USA |
B | 5 | 15 | UK |
C | 6 | 15 | Greece |
Name | Id | Age | Nationality |
A | 1 | 12 | USA |
B | 2 | 12 | UK |
C | 3 | 14 | Greece |
A | 4 | 13 | USA |
B | 5 | 15 | UK |
C | 6 | 15 | Greece |
Code:
use dataset1.dta, clear
Code:
append using dataset2.dta
Comment