Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -trim()-ed but cannot -destring()-:- hidden text characters?


From   Daniel Egan <[email protected]>
To   [email protected]
Subject   Re: st: -trim()-ed but cannot -destring()-:- hidden text characters?
Date   Wed, 27 Apr 2005 16:41:12 -0400

Thanks to Ronan, Roger, and Dan Blanchette (offlist) for assistance
with this. In the end a text editor was used to erase the hidden
characters, and Dan Blanchette wrote a nifty little program (specific
to my dataset?) which evicted the unwanted characters.

As  a final note for clarity's sake, I did in fact -list-, -browse-,
and even -charlist- the string variables. -charlist- did not return
any non-numeric elements, thus -destring, ignore()- was impotent.  As
far as I know therefore, the only means to detect these characters is
with a text editor.

If I am incorrect, please let me know. 

Cheers, 
Dan

 

On 4/26/05, Ron�n Conroy <[email protected]> wrote:
> Daniel Egan wrote:
> 
> > Hello list,
> >
> > I am having a strange problem converting strings into numerical
> > format. I have a string which by all appearances is just a number.
> >
> 
> Daniel's data did indeed contain odd characters which are invisible
> under normal circumstances. A good text editor will show them and allow
> you to zap them. Actually, any text editor will do this; a good text
> editor will do it free.

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