The function compares values across multiple vectors using all.equal.

compare_multiple_vectors(x, ...)

Arguments

x

A list of vectors to compare

...

as in all.equal

Value

A logical

Examples

# Returns TRUE compare_multiple_vectors(c(1,1,1), c(1,1,1))
#> [1] TRUE
# Returns FALSE compare_multiple_vectors(c(1,1,1), c(1,1,1), c(1,2,1))
#> [1] TRUE
# Returns FALSE compare_multiple_vectors(c(1,2,3), c(3,2,1))
#> [1] TRUE