<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.89">
<TITLE>Exporting Splus Data to R</TITLE>
</HEAD>
<BODY>
<P><FONT FACE="Times New Roman">Using </FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">> data.dump(c("foo.frame.1","foo.frame.2", ...), file="DumpData", oldStyle=T)</FONT>
</P>
<P><FONT FACE="Times New Roman">in Splus generates the requisite file in my working Splus directory. However, when I use</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">> library(foreign)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">> data.restore(file = "C:/.../DumpData",verbose = TRUE, env = .GlobalEnv)</FONT>
</P>
<P><FONT FACE="Times New Roman">I get the error messages</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Error in as.name(name) : attempt to use zero-length variable name</FONT>
<BR><FONT SIZE=2 FACE="Courier New">In addition: Warning messages: </FONT>
<BR><FONT SIZE=2 FACE="Courier New">1: NAs introduced by coercion </FONT>
<BR><FONT SIZE=2 FACE="Courier New">2: NAs introduced by coercion </FONT>
<BR><FONT SIZE=2 FACE="Courier New">3: NAs introduced by coercion</FONT><FONT FACE="Times New Roman"> </FONT>
</P>
<P><FONT FACE="Times New Roman">and not all of the Splus dataframes are imported into R (though some of them are).</FONT>
<BR><FONT FACE="Times New Roman">Any suggestions would be greatly appreciated. I am using R version 1.6.1 on</FONT>
<BR><FONT FACE="Times New Roman">Windows 2000, Splus version 6.1 on Windows 2000.</FONT>
</P>
<BR>
<P><FONT FACE="Times New Roman">Respectfully,</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New"><I></I></FONT><I> <FONT SIZE=2 FACE="Tahoma">David Paul, Ph.D.</FONT></I>
<BR><FONT SIZE=2 FACE="Tahoma"> <B> Battelle Memorial Institute</B></FONT>
<BR><B><FONT SIZE=2 FACE="Tahoma"> 505 King Avenue</FONT></B>
<BR><B><FONT SIZE=2 FACE="Tahoma"> Columbus, OH 43201</FONT></B>
<BR><B><FONT SIZE=2 FACE="Tahoma"> 614.424.3176</FONT></B>
</P>
</BODY>
</HTML>