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

RE: st: STATA reads numbers as strings


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: STATA reads numbers as strings
Date   Tue, 11 May 2004 17:38:20 +0100

-destring- will not fail, absolutely, if it 
encounters nonnumerics. See its help. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Ronán Conroy
> Sent: 11 May 2004 17:31
> To: statalist hsphsun2.harvard.edu
> Subject: Re: st: STATA reads numbers as strings
> 
> 
> on 11/05/2004 17:29, jdubas@nd.edu at jdubas@nd.edu 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.

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