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]
Re: st: formatting question
From
Rebecca Pope <[email protected]>
To
[email protected]
Subject
Re: st: formatting question
Date
Fri, 7 Dec 2012 08:27:29 -0600
Assuming your variable is "age":
*** begin example ***
clonevar strage = age /* make copy of string age for checking */
replace age = trim(subinstr(strage,"/","",.))
*** end ***
Rebecca
On Fri, Dec 7, 2012 at 8:21 AM, <[email protected]> wrote:
> 72/ /
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/