Hi, I try to reduce or remove empty space in each cell of string variables because it really hinders me from eyeballing the dataset, using the following code: https://www.statalist.org/forums/for...tching-purpose.
However, it turns out that most cells still take too much space before its values.
I got:
Could there be any possible solution? Thank you.
However, it turns out that most cells still take too much space before its values.
Code:
local varlist firmid ksic1 ksic2 ksic3 foreach v of varlist `r(varlist)'{ local vformat: format `v' local vformat: subinstr local format "%" "%-" format `vformat' `v' }
I got:
Code:
variable name display format ----------------------------- firmid %9s ----------------------------- variable name display format ----------------------------- ksic1 %58s ----------------------------- variable name display format ----------------------------- ksic2 %66s ----------------------------- variable name display format ----------------------------- ksic3 %87s -----------------------------
Comment