Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re: import string variables
From
"Joseph Coveney" <[email protected]>
To
<[email protected]>
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/