[R] SAS file

59 views
Skip to first unread message

Yuan Jian via R-help

unread,
Aug 5, 2016, 9:06:24 AM8/5/16
to R-help Mailing List
Hello,I have a SAS formatted file as attached, when I use lookup.xport i got error below> lookup.xport("patient.ssd01")Error in lookup.xport.inner(file) :   unable to open file: 'No such file or directory'

can anyone please help me to figure it out?
thanksyuan
______________________________________________
R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Jim Lemon

unread,
Aug 6, 2016, 3:00:05 AM8/6/16
to Yuan Jian, R-help Mailing List
Hi Yuan,
Your file didn't make it. The error message you got is generally due
to a misspelt filename or to the file not being where you think it is.

Jim

John Kane

unread,
Aug 7, 2016, 10:50:56 AM8/7/16
to Yuan Jian, R-help Mailing List
As Jim says the file did not arrive. R-help is very fussy about what kind of files it accepts. If you are still having a problem it would be a good idea to upload it to file-sharing place such as Dropbox or Mediafire and just post the link here.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: r-h...@r-project.org
> Sent: Fri, 5 Aug 2016 10:10:13 +0000 (UTC)
> To: r-h...@r-project.org
> Subject: [R] SAS file
>
> Hello,I have a SAS formatted file as attached, when I use lookup.xport i
> got error below> lookup.xport("patient.ssd01")Error in
> lookup.xport.inner(file) :   unable to open file: 'No such file or
> directory'
>
> can anyone please help me to figure it out?

> thanksc


> ______________________________________________
> R-h...@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

____________________________________________________________
Can't remember your password? Do you need a strong and secure password?
Use Password manager! It stores your passwords & protects your account.

Daniel Nordlund

unread,
Aug 8, 2016, 2:20:28 AM8/8/16
to r-h...@r-project.org
The file extension, '.ssd01' is typically used for a standard Unix SAS
dataset. the R function, lookup.xport(), is for examining SAS XPORT
files. So, you are using the wrong approach to read the file.

You will need to get an XPORT format file, or have SAS available, or get
some 3rd party software that will read SAS datasets.


Dan

--
Daniel Nordlund
Port Townsend, WA USA
Reply all
Reply to author
Forward
0 new messages