问题:
比如,0101101010这个code,它的xinst xinend分别是2005和2007,如何分别写成三行呢,写成0101101010在2005,2006,2007各有一行记录呢?
. dataex code xinst xinend in 1/10
----------------------- copy starting from the next line -----------------------
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input str11 code str4(xinst xinend)
- "01011010" "2004" "2004"
- "0101101010" "2004" "2004"
- "0101101010" "2005" "2007"
- "0101101010" "2007" "2008"
- "0101101090" "2004" "2004"
- "0101101090" "2005" "2008"
- "01011020" "2004" "2004"
- "0101102010" "2004" "2004"
- "0101102010" "2005" "2007"
- "0101102010" "2007" "2008"
- end
------------------ copy up to and including the previous line ------------------


雷达卡





京公网安备 11010802022788号







