Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Substring command


From   Ron�n Conroy <[email protected]>
To   [email protected]
Subject   Re: st: Substring command
Date   Thu, 20 Apr 2006 17:24:30 +0100

On 20 Aib 2006, at 12:27, Mosca, Ilaria wrote:

I have a string variable that looks like the following:
100-2555
500-2341
564-5213
I would like to generate another variable that takes away the dash. In
other words, the new variable would be the following:
1002555
5002341
5645213
I'd be tempted to use -destring- with the option to ignore("-")


=========
Ron�n Conroy
[email protected]
+353 (0) 1 402 2431
+353 (0) 87 799 97 95
www.flickr.com/photos/ronanconroy




*
*   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