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.

______________________________________________
R-help@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.

Reply via email to