Praveen Surendran
2012-Oct-29 18:28 UTC
[R] Opening SAS file using read.sas7bdat() function in sas7bdat library.
Hi, I have a file in .sas7bdat format. I tried to open this file using read.sas7bdat() function. This gave me an error - "Error in read.sas7bdat("bnp_genetic.sas7bdat") : unknown host X64_7PRO". Could someone tell me what this error means? Thank you, Praveen. [[alternative HTML version deleted]]
Marc Schwartz
2012-Oct-29 18:54 UTC
[R] Opening SAS file using read.sas7bdat() function in sas7bdat library.
On Oct 29, 2012, at 1:28 PM, Praveen Surendran <praveen.surendran at ucd.ie> wrote:> Hi, > > > > I have a file in .sas7bdat format. I tried to open this file using > read.sas7bdat() function. > > This gave me an error - "Error in read.sas7bdat("bnp_genetic.sas7bdat") : > > unknown host X64_7PRO". > > Could someone tell me what this error means? > > Thank you, > > Praveen.More than likely, a similar problem as in this recent thread, but for 64 bit, rather than 32 bit: https://stat.ethz.ch/pipermail/r-help/2012-October/325257.html Regards, Marc Schwartz
Flavio Barros
2012-Oct-29 18:56 UTC
[R] Opening SAS file using read.sas7bdat() function in sas7bdat library.
I had the same error. I think this package is still experimental. On Mon, Oct 29, 2012 at 4:28 PM, Praveen Surendran <praveen.surendran@ucd.ie> wrote:> Hi, > > > > I have a file in .sas7bdat format. I tried to open this file using > read.sas7bdat() function. > > This gave me an error - "Error in read.sas7bdat("bnp_genetic.sas7bdat") : > > unknown host X64_7PRO". > > Could someone tell me what this error means? > > > > Thank you, > > > > Praveen. > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org 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. >-- Att, Flávio Barros [[alternative HTML version deleted]]
Matt Shotwell
2012-Oct-30 14:11 UTC
[R] Opening SAS file using read.sas7bdat() function in sas7bdat library.
Thanks for the helpful comments from others. The KNOWNHOST variable lists the types of file that are known to work with the read.sas7bdat function. It's likely that most files written on Windows platforms will work, even if not listed in KNOWNHOST. If you're feeling experimental, you might just comment the lines that test against the KNOWNHOST list. Unfortunately, it appears that the file formatting depends on the system where is was originally written. The hypothesis is that sas7bdat files were originally no more than a memory dump of a C structure, or similar. Because C structures may be laid out differently by different compilers (i.e., on different platforms), this may have led to the difficulty apparent here. Regards, Matt