Learn R Programming

assertthat (version 0.2.1)

are_equal: Are two objects equal?

Description

Are two objects equal?

Usage

are_equal(x, y, ...)

Arguments

x, y

objects to compare

...

additional arguments passed to all.equal

See Also

Other assertions: is.error, is.scalar, noNA, not_empty

Examples

Run this code
# NOT RUN {
x <- 2
see_if(are_equal(x, 1.9))
see_if(are_equal(x, 1.999, tol = 0.01))
see_if(are_equal(x, 2))
# }

Run the code above in your browser using DataLab