all_identical {statnet.common} | R Documentation |
Test if all items in a vector or a list are identical.
all_identical(x)
x |
a vector or a list |
TRUE
if all elements of x
are identical to each other.
stopifnot(!all_identical(1:3)) stopifnot(all_identical(list("a", "a", "a")))