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

Thomas Lumley tlumley at u.washington.edu
Tue Oct 7 01:38:17 CEST 2003


I just found an old 1.6.2 (Mac OS/Darwin) lying around and it doesn't
recognize the file as a stata file (with foreign 0.5-8)

	-thomas


On Mon, 6 Oct 2003, Thomas Lumley wrote:

> 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
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list