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 on April 23, and its replacement, 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" <>
To   <>
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:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index