Statalist


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

st: finding non-numeric characters before I can destring


From   Michael McCulloch <[email protected]>
To   Statalist <[email protected]>
Subject   st: finding non-numeric characters before I can destring
Date   Wed, 17 Oct 2007 23:00:00 -0700

Hello,
I've got a field that's supposed to be all numbers but due to keying errors may contain letters. How can I find those records?

What I've done:
. destring number, replace

Error message:
number contains non-numeric characters; no replace

Thank you,
Michael

--

Michael McCulloch
Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]
*
* 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