From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: how to destring variables containing char " ' " |
Date | Wed, 14 Apr 2004 18:35:50 +0100 |
At 12:49 14/04/04 -0400, Shourun Guo wrote:
I have a hard time to destring some variables with both characters and numbers. The numbers are what I want. The characters may contain " ' ". If I include this character in the option of ignore, I will get error message of mismatch type. If I don't, I will be reminded that the conversion won't be done because some non-numeric character (I am sure it is the " ' ")exists. It seems that the STATA confuses the double quotation and the single quotation. Any suggestions.
Yes. If your string variable is called -netty-, and you want your numeric variable to be called -nutty-, then you can convert in 2 stages by substituting another character for the "'" in -netty-. For instance, if you type
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |