Ben,
Thanks. I had mistyped my code. I actually _had_ done
save(eggpow, file="eggpow1.Rdata")
in the original. So this is not the problem.
Andy
On Fri, 19 Nov 2004 15:34:45 -0500 (EST), Benjamin King Goodrich
<goodrich(a)fas.harvard.edu> wrote:
I am not quite sure, but I think the problem is
in the save line.
If you look at args(save), you will see that it the arguments go like
this: ..., list=, file=). I think R is interpreting you as saying that
you
want your data and a string saved, or is interpreting the "eggpow1.Rdata"
as the name of a list.
Try save(eggpow, file="eggpow1.Rdata") and see if that does the trick.
Ben
On Fri, 19 Nov 2004, Andrew Eggers wrote:
i'm having trouble saving and loading data
frames.
at the end of the data cleaning and coding process, I am trying to
save the objects I want to keep in one data frame and then continue
working using just that data frame. here's what i do:
eggpow<-as.data.frame(cbind( var1, var2, etc.))
save(eggpow, "eggpow1.RData")
later, when I try to load and use it, I do:
eggpow2 <- load("eggpow1.RData")
but eggpow2 has
> dim(eggpow2)
NULL
>eggpow2
[1] "eggpow"
I expected eggpow2 here to be identical to eggpow at the top. what am
I doing wrong?
Andy
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l(a)lists.fas.harvard.edu