Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: import string variables


From   "Joseph Coveney" <jcoveney@bigplanet.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: import string variables
Date   Sat, 29 May 2010 10:34:25 +0900

Tyler Frazier wrote:

I am having a terrible time to import string variables to Stata -- I
have tried every which way that seems possible -- txt, excel, access,
but none of them seem to work. they all convert the numbers to text.

the variables are in this format 02   050   005   010   etc etc

any suggestions?

--------------------------------------------------------------------------------

You can import these as strings using either -infile- or -infix-.  You can 
specify that the variables are to be imported as strings either in a dictionary 
file (both commands) or in-line (-infix-).  See their help files for details.

Joseph Coveney


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index