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 <mm@pinest.org>
To   Statalist <statalist@hsphsun2.harvard.edu>
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
mcculloch@pinestreetfoundation.org
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index