例如:
sysuse auto, clear
----------------------- copy starting from the next line -----------------------
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input float makeid str18 make
- 1 "AMC Concord"
- 2 "AMC Pacer"
- 3 "AMC Spirit"
- 4 "Buick Century"
- 5 "Buick Electra"
- 6 "Buick LeSabre"
- 7 "Buick Opel"
- 8 "Buick Regal"
- 9 "Buick Riviera"
- 10 "Buick Skylark"
- end
------------------ copy up to and including the previous line ------------------
Listed 10 out of 74 observations
比方说,
我想把auto.dta的auto作为make的新名字,
不是直接使用rename或者renvars,
因为,我要批量处理数据,借助 循环的时候,就不知道自己使用的是哪个文件,就无法得知是哪个名字。
求论坛的老师和同学不吝赐教!
多谢!