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: RE: AW: SV: AW: range of a stringvariable
From
"Nick Cox" <[email protected]>
To
<[email protected]>
Subject
st: RE: AW: SV: AW: range of a stringvariable
Date
Wed, 28 Apr 2010 17:14:43 +0100
Absolutely correct. In writing -split- I thought about extending it to
splitting string variables that are not separated somehow. But it would
have complicated the syntax and explanation mightily, and already users
could get directly what they want by applying -substr()-.
Nick
[email protected]
Martin Weiss
" Out of curiosity what happens with the A in 543A in the statement
below?
split remainder, parse(A)"
The -parse()- character is zapped, unfortunately. That is usually what
-split- users want. Of course you can always separate the string with
-substr()-, as shown earlier.
Tomas Lind
Thanks Martin for your kind help.
Out of curiosity what happens with the A in 543A in the statement below?
split remainder, parse(A)
I thought that the statement above meant that I should get 2 variables
ICD-10, with and without the A. However I just get one new variable,
remainder1 (which is the ICD-10 numbers without the trailing A, enough
for
the code to work).
*
* 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/