[R] compare objects in two different workspaces

Bert Gunter gunter.berton at gene.com
Thu Feb 7 23:05:28 CET 2013


Ummm...

Have you actually read ?load to see how do this using the
"environment" argument?

-- Bert

On Thu, Feb 7, 2013 at 1:58 PM, Shi, Tao <shidaxia at yahoo.com> wrote:
> In fact, they have objects with exact same names.  They were created by the same code at different time points.  The code is not version-controlled, so I only have the most recent version, but I want to know what's changed.
>
> Tao
>
>
>
>
> ----- Original Message -----
>> From: Bert Gunter <gunter.berton at gene.com>
>> To: R. Michael Weylandt <michael.weylandt at gmail.com>
>> Cc: "Shi, Tao" <shidaxia at yahoo.com>; "r-help at r-project.org" <r-help at r-project.org>
>> Sent: Thursday, February 7, 2013 1:30 PM
>> Subject: Re: [R] compare objects in two different workspaces
>>
>> ... but you need to load them into different environments in case they
>> have objects with the same name, right?
>>
>> -- Bert
>>
>> On Thu, Feb 7, 2013 at 1:25 PM, R. Michael Weylandt
>> <michael.weylandt at gmail.com> wrote:
>>>  On Thu, Feb 7, 2013 at 5:53 PM, Shi, Tao <shidaxia at yahoo.com> wrote:
>>>>  Hi list,
>>>>
>>>>  Is there a easy way to compare objects in two different workspace files
>> (i.e. .RData files) in R?  I can use some generic file compare softwares (e.g.
>> BeyondCompare) to binary comparison, but when it says they're different you
>> can't tell where the difference are from.
>>>
>>>  Load them both and compare within R?
>>>
>>>  MW
>>>
>>>>
>>>>  Thanks!
>>>>
>>>>  Tao
>>>>
>>>>
>>>>  ______________________________________________
>>>>  R-help at 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 at 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.
>>
>>
>>
>> --
>>
>> Bert Gunter
>> Genentech Nonclinical Biostatistics
>>
>> Internal Contact Info:
>> Phone: 467-7374
>> Website:
>> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
>>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list