On 2014/8/18 19:20, William Dunlap wrote:
Have you tried the 'envir' argument to load()?  E.g.,
    envA <- new.environment()
    load("A.RData", envir=envA)
    envB <- new.environment()
    load("B.RData", envir=envB)
    plot(A$object, B$object)

Bill Dunlap
TIBCO Software
wdunlap tibco.com


Thank you very much. It is what I want.
new.environment() is not defined in R 3.1.1. There is new.env().

Best,
Jinsong


On Mon, Aug 18, 2014 at 5:30 PM, Jinsong Zhao <jsz...@yeah.net> wrote:
Hi there,

I have several saved data files (e.g., A.RData, B.RData and C.RData). In
each file, there are some objects with same names but different contents.
Now, I need to compare those objects through plotting. However, I can't find
a way to load them into a workspace. The only thing I can do is to rename
them and then save and load again.

Is there a convenient to load those objects?

Thanks a lot in advance.

Best regards,
Jinsong

______________________________________________
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.


______________________________________________
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