Skip to content
Prev 256773 / 398506 Next

problem with all/all.equal

The help pages for identical() and all.equal() have information that will
make it clear why they don't do what you want.

In the meantime, I tend to use a construct such as:

   length(unique(x))==1

But be careful if x is not a vector.
No doubt there are other ways.

-Don