Skip to contents

Checks whether two vectors are equal; wrapper for all.equal

Usage

check(x, y, check.attributes = FALSE, ...)

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