楼主: flashxo
8499 14

变量名是中文怎么办? [推广有奖]

11
peyzf 发表于 2012-10-17 14:46:46

. rename  营业利润 profit
营业利润 invalid name
r(198);

12
hplcdadong 发表于 2012-10-18 05:27:32
Assume your original dta file is "myfile" , the following may work

use myfile, clear
outsheet using myfile_noname.csv, comma nonames replace
insheet using myfile_noname.csv, nonames clear       //then you can rename variables as you like
已有 1 人评分学术水平 热心指数 收起 理由
ywh19860616 + 2 + 1 perfect

总评分: 学术水平 + 2  热心指数 + 1   查看全部评分

13
fgleric 发表于 2012-10-18 07:38:55
额,俺这有个安装包,忘记在哪下载的了,可是无法上传,有需要的站内信你邮箱吧

14
peyzf 发表于 2012-10-18 10:48:02
thanks.

15
彩笔xiao新 发表于 2021-2-6 20:26:43
flashxo 发表于 2009-11-15 20:37
没有原始数据了,现只有dta格式的,并且数据量太大,也不能考回excel改变量名
直接用stata将dta数据直接导出到excel数据也可以

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-12 04:57