[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Extracting Numbers from Strings
From
[email protected]
To
"[email protected]" <[email protected]>
Subject
st: Extracting Numbers from Strings
Date
Wed, 24 Dec 2008 11:24:20 -0800
I'm trying to extract the first number after a hyphen.
For example, from x="1234-1" I want to create y=1.
Thanks.
*
* 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/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |