powered by
Check whether a vector, x, has all its entries equal to its first entry
check_identical(x)
a vector
a logical indicating whether all vector entries are the same
# NOT RUN { x <- 1:5 check_identical(x) y <- rep(1, 5) check_identical(y) # }
Run the code above in your browser using DataLab