Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1125

Re: Export tables to Excel

$
0
0

You can use the undocumented mata function numtobase26() to get the Excel column names. For example,

. local i = 1

. mata:st_local("col_num", numtobase26(strtoreal(st_local("i"))))

. di "`col_num'"
A


Viewing all articles
Browse latest Browse all 1125

Trending Articles