Checks whether two vectors are equal; wrapper for all.equal
check.Rd
Checks whether two vectors are equal; wrapper for all.equal
Arguments
- x, y
Vectors to test
- check.attributes
Default: FALSE
- ...
Additional arguments to
all.equal()
Examples
.test <- 'Example'
check(1,1)
#> [1] TRUE
try(check(1,2), silent=TRUE)
cat(geterrmessage())
#> Error : Problem in
#> 1 not equal to 2
#> Mean relative difference: 1