search for: expecxted

Displaying 1 result from an estimated 1 matches for "expecxted".

Did you mean: expected
2008 Nov 09
1
attr.all.equal() and all.equal(attributes(), attributes())
Dear All! If I try to compare the attributes of two objects, I find a surprising behaviour of attr.all.equal(). With identical attributes I receive the answert NULL. If the attributes differ, the answer is as expecxted and differences are shown. all.equal(attributes(), attributes()) instead returns TRUE, if attributes are equal. See example: v <- 1:5 attr(v, 'testattribute') <- 'testattribute v' v_c <- v attributes(v) $testattribute [1] "testattribute v" attributes(v_c) $tes...