stata 方法收集

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==""

 

posted @ 2023-07-09 21:02  myrj  阅读(15)  评论(0编辑  收藏  举报