黃河泉 发表于 2019-3-10 08:02 
你给的资料有何问题?要做什么?请说明!
[code]
. gen industry= "1"
. destring industry,replace force
industry contains nonnumeric characters; replaced as byte
. destring ids_1,replace force
ids_1 already numeric; no replace
. replace industry= "0" if ids_1== "2710"|ids_1== "2720"
type mismatch
r(109);
就是使用replace之后出现了type mismatch的问题,求解答,谢谢大神