[R] loading saved files with objects in same names

Rolf Turner r.turner at auckland.ac.nz
Tue Aug 19 04:52:49 CEST 2014

On 19/08/14 14: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)

Did you mean

      plot(envA$object, envB$object)

???  Or am I misunderstanding something?



Rolf Turner
Technical Editor ANZJS

More information about the R-help mailing list