Skip to content
Prev 310938 / 398502 Next

Selecting the "non-attribute" part of an object

I think that what you are looking for is:

     all.equal(tm,tmm,check.attributes=FALSE)

But BEWARE:

     m   <- matrix(1:36,4,9)
     mm <- matrix(1:36,12,3)
     all.equal(m,mm,check.attributes=FALSE)

gives TRUE!!!  I.e. sometimes attributes really are vital characteristics.

     cheers,

         Rolf Turner
On 16/11/12 08:52, Jonathan Dushoff wrote: