请教:数据类型在最下,如何实现下方的结果:
id year P2503 P2504 P2505 P2515 P2599
4 2010 1 . . 1 1
也就是把TypeID转换为具体的代码(P开头的)。进行分类分析。
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long id int year str41 TypeID
- 4 2010 "P2503,P2515,P2599"
- 4 2011 "P2503,P2515,P2599"
- 4 2012 "P2503,P2515,P2599"
- 4 2013 "P2503,P2515,P2599"
- 4 2008 "P2503,P2599"
- 4 2009 "P2503,P2599"
- 4 2010 "P2503,P2599"
- 5 2007 "P2503,P2504,P2505,P2599"
- 5 2008 "P2503,P2504,P2505,P2599"
- 5 2009 "P2503,P2504,P2505,P2599"
- end


雷达卡






京公网安备 11010802022788号







