Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: middle initial
From
Michael Eisenberg <[email protected]>
To
[email protected]
Subject
st: middle initial
Date
Wed, 28 Dec 2011 12:12:00 -0800
Colleagues,
I have what I hope will be a simple question to answer.
I have a list of middle names and I'd like to isolate the first initial.
I tried but it gives me the letter with ... after it.
gen midi=middlename
format midi %1s
Thank you in advance.
Mike
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/