You can just use save() to save the object as an Rdata file.
On Sun, Apr 12, 2009 at 6:55 PM, Diane Kuhn <dmkuhn at fas.harvard.edu> wrote:
Thanks Miya-I think what we are actually interested in
doing is
storing a new data set that we could call up in R; the new data set is
a subset of our initial data, but creating the subset entails running
a rather lengthy, cumbersome for loop that creates memory issues. We
essentially want to save the subset data as a new data file so that we
can just open that and load it when we want to work with it, rather
than re-creating it from our original data by running the for loop
everytime we need to use the subset data. Does that make sense?
We've been looking at the attach(), store(), and assign() commands,
but we're still unclear on how to do this.
Thanks
Diane
On Sun, Apr 12, 2009 at 6:30 PM, Miya Woolfalk <woolfalk at fas.harvard.edu>
wrote:
You could use a list to store each object. But
depending on what you are
doing you may or will run into memory programs no matter how your store
your
objects.
On Sun, Apr 12, 2009 at 11:00 AM, Diane Kuhn <dmkuhn at fas.harvard.edu>
wrote:
Hi all,
Alisha and I are interested in saving the object produced by a for
loop so that we are not obligated to re-run the loop every time we
want to work with our data, as it takes a really long time and uses a
lot of memory. Has anyone needed to do this?
Thanks a lot,
Diane
_______________________________________________
gov2001-l mailing list
gov2001-l at
mailman.fas.harvard.edu
http://mailman.fas.harvard.edu/mailman/listinfo/gov2001-l
--
Miya Woolfalk
Ph.D. Student
Harvard University
Government and Social Policy
_______________________________________________
gov2001-l mailing list
gov2001-l at
mailman.fas.harvard.edu
http://mailman.fas.harvard.edu/mailman/listinfo/gov2001-l
--
Diane Kuhn
PhD Candidate
Department of Government
Harvard University
dmkuhn at
fas.harvard.edu
_______________________________________________
gov2001-l mailing list
gov2001-l at
mailman.fas.harvard.edu
http://mailman.fas.harvard.edu/mailman/listinfo/gov2001-l
--
Miya Woolfalk
Ph.D. Student
Harvard University
Government and Social Policy