Skip to content
Prev 384133 / 398502 Next

all.equal and use.names

Howdy Folks,

Eric - I'm just using this as a toy example to illustrate what I'm trying
to do. The actual lists I'm trying to compare are much larger and more
complex. So sorting them like that is something I'd have to do recursively.
I wanted to take advantage of all.equal because I want to be able to
identify the elements that are missing in one vs the other. And my
understanding is that identical() won't give me that kind of out put.

I think what I'm going to do is flatten both lists using unlist, and then
compare them using the names of the two flattened lists.

Thanks
John

On Thu, May 28, 2020 at 1:54 AM Martin Maechler <maechler at stat.math.ethz.ch>
wrote: