Displaying 1 result from an estimated 1 matches for "tp3431956p3432167".
2011 Apr 06
4
problem with all/all.equal
Hi!
In a function, I may have an instance in which all elements are equal.
> x <- rep(1,5)
>
> x
[1] 1 1 1 1 1
> identical(x)
Error in .Internal(identical(x, y, num.eq, single.NA, attrib.as.set)) :
'y' is missing
> all.equal(x)
Error in is.expression(x) : 'x' is missing
>
I don't care what particular value it is, I just want to know if they are
all