See save() and load(), but the following might be easier because it
does not mess with your existing object names:
library(R.utils)
saveObject(pv.lo, "myLoessFit.Rbin")
pv.lo <- loadObject("myLoessFit.Rbin")
foo <- loadObject("myLoessFit.Rbin")
print(identical(pv.lo, foo)) # => TRUE
/Henrik
On Thu, Jun 11, 2009 at 10:22 AM, Lana Schaffer<schaffer at scripps.edu>
wrote:>
> Hi,
>
> pv.lo <- loess(Affy ~ DABG, DA, span=0.2, degree=2,
family="symmetric")
>
> I would like to know how to save the output from the loess fit
> so that I can read it again into another session of R.
> Can someone help me figure this out?
>
> Lana Schaffer
> Biostatistics/Informatics
> The Scripps Research Institute
> DNA Array Core Facility
> La Jolla, CA 92037
> (858) 784-2263
> (858) 784-2994
> schaffer at scripps.edu
>
> ______________________________________________
> R-help at 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.
>