When name and year exist, I cannot use the command below because it says variables already exist. how to insert some observations quickly?
I know a stupid way is
set obs ...
replace ...in...
But when I have a lot of observations to add, I guess there should be a better and more direct way.
Thanks!
Code:
input expName year 刘洋 2015 彭蓉 2015 方静 2016 杜海燕 2015 石书田 2015 邵宗义 2015 金源祎 2016 陈伯爽 2015 end
set obs ...
replace ...in...
But when I have a lot of observations to add, I guess there should be a better and more direct way.
Thanks!
Comment