Skip to content

Please help with write.foreign(SPSS)

1 message · Jim Lemon

#
On 12/07/2010 09:42 PM, He wrote:
Normally, when you write out a data file in SPSS format from R, it 
should correspond to an SPSS "system" or .SAV file. I would expect to 
see something like this:

library(foreign)
write.spss(df,file="k:/res.sav")

Then in your SPSS file:

GET /FILE="k:\res.sav".

I don't think the .SAV extension is necessary, but I'm not sure.

Jim