[R] Problem importing an S+ file

Peter Flom flom at ndri.org
Mon Jul 14 16:47:07 CEST 2003


I am a newbie to R, so excuse me if this is basic.

I am using R 1.7.1 on a Windows machine (and also S+ 6)

I have an S+ data frame called da.hh, which is stored in 

C:\Program Files\Insightful\splus6\users\Flom\.data

I want to read this file into R.  After reading the R Data
Import/Export file, I loaded the foreign package with library(foreign)
and then tried

Files\\Insightful\\splus6\\users\\Flom\\.data("_data", "da.hh"))

I also tried it with single \

In both cases, I got "syntax error"

Thanks in advance

Peter L. Flom, PhD
Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
National Development and Research Institutes
71 W. 23rd St
New York, NY 10010
(212) 845-4485 (voice)
(917) 438-0894 (fax)

More information about the R-help mailing list