The following works just fine for me, using the built-in SPSS dataset
nhis2000_subset.sav.
library(foreign)
a=read.spss("C:\\Program
Files\\IBM\\SPSS\\Statistics\\21\\Samples\\English\\nhis2000_subset.sav",
to.data.frame=T)
names(a)
[1] "STRATUM" "PSU" "WTFA_SA" "SEX" "AGE_P"
> 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/A
2 matches
Mail list logo