[R] still spss

Douglas Bates bates at stat.wisc.edu
Fri Mar 12 20:58:14 CET 2004


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())




More information about the R-help mailing list