Dear All, I found this question here. The question is that how we count the number of columns in the data set. For example,
there are 5 columns. Any suggestions are appreciated.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str3 X float Y str5 Z str3(P Q) "一" 1 "one" "Ⅰ" "①" "二" 2 "two" "Ⅱ" "②" "三" 3 "three" "Ⅲ" "③" "四" 4 "four" "Ⅳ" "④" "五" 5 "five" "Ⅴ" "⑤" "六" 6 "six" "Ⅵ" "⑥" end
Comment