全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2422 1
2016-03-21
做数据纵向合并的时候,发现有同一字段数据格式不同无法合并,该用什么代码修改格式呢?
报错提示如下:

variable birth_date is byte in master but str10 in using data
    You could specify append's force option to ignore this numeric/string mismatch.  The using variable would then
    be treated as if it contained numeric missing value


ps:使用了destring但因为数据中有“-”而无法转化
二维码

扫码加我 拉你入群

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

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

全部回复
2016-3-22 00:43:42
该用什么代码修改格式呢?
这个取决于你的文本本身是什么格式的。请参考help datetime##s3
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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