People I need a function that checks that all the coordinates of the vector are equal.
a = rep(1, 5)
Let the previous output be TRUE.
b = c(rep(1, 4),2)
Let the previous output be FALSE.
all(a == a)
all(b == b)