全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1804 2
2014-12-17
des

Contains data
obs:            13                          
vars:             4                          
size:           351                          
               
storage  display     value
variable name   type   format      label      variable        label
               
v1              str8   %9s                    
v2              str6   %9s                    
v3              str6   %9s                    
v4              str7   %9s                    
               
Sorted by:  
Note:  dataset has changed since last saved

. destring v2-v4, replace
v2 contains nonnumeric characters; no replace
v3 contains nonnumeric characters; no replace
v4 contains nonnumeric characters; no replace


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-17 09:14:03
destring v2-v4, replace force

试试
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-7-29 10:29:00
可以考虑用real()函数或encode命令转换。祝好运~
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群