sort by the 2nd column and compare using current row to previous row?
sort v2
gen v3=1 if v2==v2[_n-1] & v1==v1[_n-1]+1
楼主: steeds
|
1208
4
[编程问题求助] 求教如果检查一个string是否在另一堆string之中 |
讲师 91%
-
|
提示: 受到警告 蓝色 违反论坛规定 2014-1-15 21:35
200论坛币
| |
Information Asymmetry|Market Microstructure|Credit Rating Agencies
|
||
| ||
| ||
Information Asymmetry|Market Microstructure|Credit Rating Agencies
|
||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明