Dear All, I found this question here. The data /code is:
The outcome is:
The question is: How can we make the column names [测试长.. 测试长.. 测试长..] complete? Thanks.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str16 var1 str7 var2 "测试长字符1" "地区1" "测试长字符2" "地区1" "测试长字符1" "地区1" "测试长字符1" "地区1" "测试长字符2" "地区2" "测试长字符1" "地区1" "测试长字符2" "地区2" "测试长字符3" "地区2" end tab var2 var1
Code:
. tab var2 var1
| var1
var2 | 测试长.. 测试长.. 测试长.. | Total
-----------+---------------------------------+----------
地区1 | 4 1 0 | 5
地区2 | 0 2 1 | 3
-----------+---------------------------------+----------
Total | 4 3 1 | 8

Comment