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

Thomas Lumley tlumley at u.washington.edu
Tue Oct 7 00:14:21 CEST 2003


On Mon, 6 Oct 2003, Thomas Lumley wrote:

> On Mon, 6 Oct 2003, Alan Cobo-Lewis wrote:
>
> >
> > But sometimes older works better than newer. The read.dta() function in
> > R 1.7.0's foreign package (package 0.6-3) fails to recognize as a Stata
> > file what seems to be a genuine Stata file, even though R 1.6.2's
> > foreign package (package 0.5-9) imports the same file just work fine.

Are the data correct with 1.6.2? It's looking increasingly strange that
foreign ever read these data.  The file doesn't seem to have the timestamp
field that versions 5-8 include, which should mess up the reading of the
rest of the file.

	-thomas




More information about the R-help mailing list