Skip to content
Prev 59321 / 398502 Next

hashing using named lists

On Thu, 18 Nov 2004, ulas karaoz wrote:

            
?match on the names
What do you mean by that?  It (by default or not) tests all the 
attributes, including the names:

test <- list(name=1:3)
test2 <- list(na=1:3)
all.equal(test, test2)
[1] "Names: 1 string mismatches"

Now, all.equal does not require an exact match, deliberately: that is what 
identical() is for:

identical(test, test2)
[1] FALSE
?match