Re: [R] Save/Load function()-result to file in a loop

2012-03-08 Thread Johannes Radinger
Original-Nachricht > Datum: Thu, 08 Mar 2012 09:51:01 -0500 > Von: Duncan Murdoch > An: "R. Michael Weylandt" > CC: Johannes Radinger , R-help@r-project.org > Betreff: Re: [R] Save/Load function()-result to file in a loop > On 08/03/2012 8:42 A

Re: [R] Save/Load function()-result to file in a loop

2012-03-08 Thread Duncan Murdoch
On 08/03/2012 8:42 AM, R. Michael Weylandt wrote: Load doesn't return the object you saved, but rather a character vector with the name of that object, here "x". So you would do something like load("/path/to/file_A") x # Here's your data or more robustly get(load("/path/to/file_A")) See ?load

Re: [R] Save/Load function()-result to file in a loop

2012-03-08 Thread R. Michael Weylandt
Load doesn't return the object you saved, but rather a character vector with the name of that object, here "x". So you would do something like load("/path/to/file_A") x # Here's your data or more robustly get(load("/path/to/file_A")) See ?load (value) for details. Michael On Thu, Mar 8, 2012

[R] Save/Load function()-result to file in a loop

2012-03-08 Thread Johannes Radinger
Hi, I am looking for a way to save the result of a function, e.g the lm()-function to a file and reload it afterwards again. I'd like to do that in order to minimize the used memory when running the function in a loop. The actual function I want to store is the evaluate() from the dismo package