Re: [R] How to read SPSS file in R

2012-12-03 Thread Mark Lamias
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"   

Re: [R] How to read SPSS file in R

2012-12-03 Thread S Ellison
> 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