[R] spss

Chuck Cleland ccleland at optonline.net
Fri Mar 12 16:27:17 CET 2004


Margarida Júlia Rodrigues Igreja wrote:
> i can´t download a file in access.
> 
> when i type:
>  > library(foreign)
>  >  read.spss("H:\Desktop\bd1\experiencia1")
> 
> comes the error:
> Error in read.spss("H:Desktop\bd1experiencia1") : unable to open file

   From the R for Windows FAQ...

R can't find my file, but I know it is there!

How did you specify it? Backslashes have to be doubled in R 
character strings, so for example one needs 
"d:\\rw1081\\library\\xgobi\\scripts\\xgobi.bat". Make life 
easier for yourself by using forward slashes as path separators: 
they do work under Windows.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list