From | Daniel M�ller <[email protected]> |
To | "Statalist" <[email protected]> |
Subject | st: removing blanks in string variable |
Date | Thu, 16 Jan 2003 13:46:50 +0100 |
I have a string variable, which looks like "12 34 56 78". How can I remove the blanks to obtain "12345678" ? I guess it can be done with -gen x=subinstr(s1,s2,s3,n), but I do not get the syntax correct. I checked the archives and the FAQs without success. Thanks in advance, greetings, -- Daniel * * 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 |