[R] How to read SPSS file in R

S Ellison
Mon, 03 Dec 2012 19:47:33 -0000

> I tried the following:
>
>
>> library(foreign)
>> Corp<-read.spss("/Users/kama/Analysis/Corporation.sav",
header=TRUE,
>> sep=",")
> Error in read.spss("/Users/kama/Analysis/Corporation.sav", header
= TRUE,  :
> unused argument(s) (header = TRUE, sep = ",")
>> Corp<-read.spss("/Users/kama/Analysis/Corporation.sav")
> re-encoding from UTF-8
>
> Any suggestions please?

At the risk of being glib, Yes.
i) Read the error message.
ii) Read the help file for ?read.css

Then think about why supplying two unnecessary arguments might cause an error
message that says "unused arguments..." and what the help file tells
you about UTF-8 encoding.

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}