hi again, i still cannot open the file in spss :( i type: library(foreign) read.spss("H:\\Desktop\\bd1\\experiencia1") and the error comes: Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open file can you help me? margarida,portugal
It appears you may have left off the file extension, "experiencial.sav" -----Original Message----- From: Margarida J?lia Rodrigues Igreja [mailto:migreja at med.up.pt] Sent: Tuesday, March 04, 1997 2:24 AM To: R-help at stat.math.ethz.ch Subject: [R] still spss hi again, i still cannot open the file in spss :( i type: library(foreign) read.spss("H:\\Desktop\\bd1\\experiencia1") and the error comes: Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open file can you help me? margarida,portugal ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Dear Margarida, Are you sure that the file is named experiencia1. Might it be named experiencia1.sav or experiencia1.por? I hope that this helps, John> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of > Margarida J?lia Rodrigues Igreja > Sent: Tuesday, March 04, 1997 2:24 AM > To: R-help at stat.math.ethz.ch > Subject: [R] still spss > > hi again, > > i still cannot open the file in spss :( > > i type: > library(foreign) > read.spss("H:\\Desktop\\bd1\\experiencia1") > > and the error comes: > Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable > to open file > > can you help me? > > margarida,portugal >
Margarida J?lia Rodrigues Igreja wrote:> library(foreign) > read.spss("H:\\Desktop\\bd1\\experiencia1") > Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open fileI suspect, you make still a path error. Does your file really have no extension (e.g. .sav)? The default behaviour of Windows is to hide extensions. Maybe, read.spss("H:\\Desktop\\bd1\\experiencia1.sav") will help, otherwise you may look for a computer expert near you. Thomas P.
Margarida J?lia Rodrigues Igreja wrote:> hi again, > > i still cannot open the file in spss :( > > i type: > library(foreign) > read.spss("H:\\Desktop\\bd1\\experiencia1") > > and the error comes: > Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open fileFor sure the file there? Does the file has an extension, .sav for example? You will need to specify the latter as in: read.spss("H:\\Desktop\\bd1\\experiencia1.sav") Uwe Ligges> can you help me? > > margarida,portugal > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
Another thing to try if you just can't get the other suggestions to work is: read.spss(file.choose()) This will bring up up a Windows dialogue that allows you to navigate to and select the file. --- Date: Fri, 12 Mar 2004 18:12:26 +0100 From: Thomas Petzoldt <thpe at hhbio.wasser.tu-dresden.de> To: =?ISO-8859-1?Q?Margarida_J=FAlia_Rodrigues_Igreja?= <migreja at med.up.pt> Cc: <R-help at stat.math.ethz.ch> Subject: Re: [R] still spss Margarida Júlia Rodrigues Igreja wrote:> library(foreign) > read.spss("H:\\Desktop\\bd1\\experiencia1") > Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open fileI suspect, you make still a path error. Does your file really have no extension (e.g. .sav)? The default behaviour of Windows is to hide extensions. Maybe, read.spss("H:\\Desktop\\bd1\\experiencia1.sav") will help, otherwise you may look for a computer expert near you. Thomas P. ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Uwe Ligges <ligges at statistik.uni-dortmund.de> writes:> Margarida J?lia Rodrigues Igreja wrote: > > > hi again, > > i still cannot open the file in spss :( > > > i type: > > > library(foreign) > > read.spss("H:\\Desktop\\bd1\\experiencia1") > > and the error comes: > > > Error in read.spss("H:\\Desktop\\bd1\\experiencia1") : unable to open file > > For sure the file there? Does the file has an extension, .sav for > example? You will need to specify the latter as in: > read.spss("H:\\Desktop\\bd1\\experiencia1.sav")In Windows I recommend the use of file.choose() in place of explicit file names. The function brings up a chooser panel in which you can use the familiar Windows point-and-click style of selecting a file. That is, invoke read.spss as read.spss(file.choose())