Re: [R] Merging RData files

2018-01-16 Thread Henrik Bengtsson
To expand on what Bert suggests. Use: loadToEnv <- function(file, ..., envir = new.env()) { base::load(file = file, envir = envir, ...) } envA <- loadToEnv("a.RData") envB <- loadToEnv("b.RData") and then access the objects in environments envA and envB using environment access methods, e.g.

Re: [R] Merging RData files

2018-01-16 Thread Bert Gunter
?load Read this carefully. Pay attention to its instructions re: overwriting existing objects. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On T

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
ne object). BTW, what do you mean exactly by "combine/consolidate"? And finally, post your questions in plain text not html, otherwise they can be mangled. Cheers Petr -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen Sent: Tue

Re: [R] Merging RData files

2018-01-16 Thread Steven Yen
? >>> >>> And finally, post your questions in plain text not html, otherwise >>> they can be mangled. >>> >>> Cheers >>> Petr >>> >>>> -Original Message- >>>> From: R-help [mailto:r-help-boun...@r-proje

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
W, what do you mean exactly by "combine/consolidate"? And finally, post your questions in plain text not html, otherwise they can be mangled. Cheers Petr -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen Sent: Tuesday, January 16, 2

Re: [R] Merging RData files

2018-01-16 Thread Steven Yen
t not html, otherwise they can > be mangled. > > Cheers > Petr > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen >> Sent: Tuesday, January 16, 2018 9:44 AM >> To: r-help@r-project.org >> Su

Re: [R] Merging RData files

2018-01-16 Thread PIKAL Petr
"? And finally, post your questions in plain text not html, otherwise they can be mangled. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Steven Yen > Sent: Tuesday, January 16, 2018 9:44 AM > To: r-help@r-project.org &g

Re: [R] Merging RData files

2018-01-16 Thread Duncan Murdoch
On 16/01/2018 3:43 AM, Steven Yen wrote: I ran two separate hours-long projects. Results of each were saved to two separate .RData files. Content of each includes, among others, the following:    me    se  t p sig pc21.age    0.640 0.219  2.918 0.004 *** pc21.agesq 

[R] Merging RData files

2018-01-16 Thread Steven Yen
I ran two separate hours-long projects. Results of each were saved to two separate .RData files. Content of each includes, among others, the following:    me    se  t p sig pc21.age    0.640 0.219  2.918 0.004 *** pc21.agesq  0.000 0.000    NaN   NaN pc21.inc