[R] read SAS file

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Tue Nov 11 10:35:28 CET 2008


b g wrote:
> I must have this file in the wrong directory. I can see it and it's
spelled correctly in my command (including case) but I get:
> 
>> library(foreign)> read.xport("cft2008R")

Error in lookup.xport(file)
>> :
unable to open file: 'No such file or directory'> There are several
subdirectories under C:\Program Files\R\R-2.8.0\ . Should it be in one
of those?

If it is a .xpt file, then you likely need "cft2008R.xpt".

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list