Hi, I try to import a SPSS file with foreign but don't succeed. I looked into the help pages but find no answer. The file has been produced with SPSS 15 but I got the same error with a file in SPSS portable format. mydata<-read.spss("C:\Rdata\ESS1_ICT.SAV") Erreur dans read.spss("C:RdataESS1_ICT.SAV") : impossible d'ouvrir le fichier I guess the error is evident for everyone else, but I don't see it. Thanks Frank Thomas -- .......................................... Dr. Frank Thomas FTR Internet Research 93110 Rosny-sous-Bois France
Have a look at FAQ 2.16 in the R for Windows FAQ. On 29/04/07, Frank Thomas <news.ftr at free.fr> wrote:> Hi, > I try to import a SPSS file with foreign but don't succeed. I looked > into the help pages but find no answer. The file has been produced with > SPSS 15 but I got the same error with a file in SPSS portable format. > > mydata<-read.spss("C:\Rdata\ESS1_ICT.SAV") > Erreur dans read.spss("C:RdataESS1_ICT.SAV") : > impossible d'ouvrir le fichier > > I guess the error is evident for everyone else, but I don't see it. > Thanks > Frank Thomas > > -- > .......................................... > Dr. Frank Thomas > FTR Internet Research > 93110 Rosny-sous-Bois > France > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- ================================David Barron Said Business School University of Oxford Park End Street Oxford OX1 1HP
David Barron gave me a good tip that I had not seen:> Have a look at FAQ 2.16 in the R for Windows FAQ.Knut Krueger wrote:> My workaround for that problem is to build the data sheet in Excel and > import it to SPSS and R. > Or to export the SPSS sheet to CSV (or maybe if it is possible to > Excel) and import it to R > SPSS does not externalize the data format :-( > Regards Knut >We don't have SPSS so unfortunately this work around is not possible. Thank you both, Frank -- .......................................... Dr. Frank Thomas FTR Internet Research 93110 Rosny-sous-Bois France