On Tue, 25 Feb 2003, Paul, David A wrote:
> Using
>
> > data.dump(c("foo.frame.1","foo.frame.2", ...),
file="DumpData",
> oldStyle=T)
>
> in Splus generates the requisite file in my working Splus directory.
> However, when I use
>
> > library(foreign)
> > data.restore(file = "C:/.../DumpData",verbose = TRUE, env =
.GlobalEnv)
>
> I get the error messages
>
> Error in as.name(name) : attempt to use zero-length variable name
> In addition: Warning messages:
> 1: NAs introduced by coercion
> 2: NAs introduced by coercion
> 3: NAs introduced by coercion
>
> and not all of the Splus dataframes are imported into R (though some of
them
> are).
> Any suggestions would be greatly appreciated. I am using R version 1.6.1
on
> Windows 2000, Splus version 6.1 on Windows 2000.
?data.restore does say
... S-PLUS on either Windows (versions 3.x, 4.x, 2000) ...
and we are not sure that data.dump(oldStyle=T) generates the same format:
it looks from your example that it does not. If you could make an example
available we could try to crack the differences.
If you want to transfer data frames, why not use dump and source? That
has worked for me.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595