R/utils.R
check_identical.Rd
Check whether a vector, x, has all its entries equal to its first entry
check_identical(x)
x | a vector |
---|
a logical indicating whether all vector entries are the same
x <- 1:5 check_identical(x)#> [1] FALSE#> [1] TRUE