rename 容积率 x gen lower =ustrregexs(0) if ustrregexm(x,"(?<=\≥)[\d\.]+") replace lower =ustrregexs(0) if ustrregexm(x,"(?<=\>)[\d\.]+")&lower=="" replace lower =ustrregexs(0) if ustrregexm(x,"(?<=\大于或等于)[\d\.]+")&lower=="" gen upper =ustrregexs(0) if ustrregexm(x,"(?<=\≤)[\d\.]+") replace upper =ustrregexs(0) if ustrregexm(x,"(?<=\<)[\d\.]+")&upper=="" replace upper =ustrregexs(0) if ustrregexm(x,"(?<=\小于或等于)[\d\.]+")&upper==""
标签:rename,lower,stata,收集,ustrregexs,ustrregexm,方法 From: https://www.cnblogs.com/xkdn/p/17539396.html