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

Re: st: STATA reads numbers as strings


From   Ron�n Conroy <[email protected]>
To   "statalist hsphsun2.harvard.edu" <[email protected]>
Subject   Re: st: STATA reads numbers as strings
Date   Tue, 11 May 2004 17:30:52 +0100

on 11/05/2004 17:29, [email protected] at [email protected] wrote:

> I keep trying to import data (csv file) that are all numbers, but STATA reads
> some of them as string.  How do I get STATA to read it properly?

First check that there isn't something in there (such as a space) that is
not visible but nonnumeric. Try -destring- , which will fail if it
encounters nonnumerics.



Ronan M Conroy ([email protected])
Lecturer in Biostatistics
Royal College of Surgeons
Dublin 2, Ireland
+353 1 402 2431 (fax 2764)

--------------------
Just say no to drug reps
http://www.nofreelunch.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index