[R] write.foreign and SPSS

Thomas Lumley tlumley at u.washington.edu
Tue Jul 5 21:16:13 CEST 2005


On Tue, 5 Jul 2005, Erin Hodgess wrote:

> Dear R:
>
> In the foreign library, there is a function "write.foreign".
>
> When this is used to write to an SPSS file, there are
> actually 2 files as output: a data file and a code file.
>
> How would you coordinate these to become an SPSS sav file,
> please?

Use SPSS to run the code file. It will read in the data file.  Then you 
can save from SPSS as a .sav.


 	-thomas




More information about the R-help mailing list