Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: left aligned string vars


From   Christopher F Baum <[email protected]>
To   [email protected]
Subject   st: Re: left aligned string vars
Date   Tue, 8 Feb 2005 17:50:27 -0500

Friedrich wants to automate his leftist tendencies. Using auto.dta, gen mm = make, then

. local crud:type mm

. local format="%-"+substr("`crud'",4,.)+"s"

. format mm `format'

. desc mm

storage display value
variable name type format label variable label
------------------------------------------------------------------------ -------
mm str17 %-17s


Kit

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index