are all elements in x the same?
Usage
allAreEqual(x, method = 1)
Arguments
- x
vector of elements to be compared
- method
Select one of two methods. 1: check if the length of unique
elements is equal to one, 2: check if all elements are equal to the first
element.
Value
TRUE
if all elements in x
are equal to each other,
otherwise FALSE