I can't say for sure as I have never used sasxport.get, but I believe that a
SAS export file is not the same as a sas library. I believe you are trying to
read a SAS library file with an R program that may have been written to read a
SAS export file.
John
John Sorkin
Chief Biostatistics and Informatics
Univ. of Maryland School of Medicine
Division of Gerontology and Geriatric Medicine
[email protected]
-----Original Message-----
From: Sashi Challa <[email protected]>
To: [email protected] <[email protected]>
Sent: 12/27/2010 7:43:05 PM
Subject: [R] Reading sas7bdat files into R
Hi All,
I am trying to import a .sas7bdat file into R.
I tried using Hmisc package's sasxport.get() function.
temp <- sasxport.get("path\abcd.sas7bdat")
I get an error that says "Error in lookup.xport(file) : file not in SAS
transfer format"
I am not familiar with SAS transfer format.
Could somebody please clarify what is it that I am missing,
Thanks for your time,
Sashi
______________________________________________
[email protected] mailing list
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.
Confidentiality Statement:
This email message, including any attachments, is for th...{{dropped:6}}
______________________________________________
[email protected] mailing list
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.