[R] R: Use of the Foreign package to import Stata files

Thomas Lumley tlumley at u.washington.edu
Sun Nov 3 03:36:57 CET 2002

On Sat, 2 Nov 2002, William Hart wrote:

> An R newbie here.  I am using R 1.6 currently and have
> (successfully, I think) installed the Foreign package.
>  Tried to import a data file created with Stata 7.0
> SE.  Had minor problems with syntax then R decided
> that my file was not really a Stata file.  It rejected
> the file saying 'Not created by Stata 5-7/SE'.  Any
> suggestions on how to convince R that this is really,
> truly a Stata file?

You need the version of read.dta that I wrote yesterday after finally
obtaining some 7/SE datasets for debugging.  If you can compile packages
then I can send you the code, otherwise you will have to wait for the next
version of the foreign package.


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list