[R] Loading .Rdata within an R function

Giles Crane gilescrane at verizon.net
Fri Jul 9 04:22:55 CEST 2010


Thank you for your consideration of this question.
I have tried both your suggestions.
However, the data is not loaded within the function.

When I specify load("mydata.Rdata",.globalEnv),
the data is loaded into the top level environment,
and the function does access the data in the top level environment.

However, I would like to load the data into the function environment,
so that the data goes away when the function terminates.

Cordially,
Giles Crane
-- 
View this message in context: http://r.789695.n4.nabble.com/Loading-Rdata-within-an-R-function-tp2282751p2283051.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list