View source: R/gradethis_equal.R
gradethis_equal | R Documentation |
Compare the values of two objects to check whether they are equal
gradethis_equal(x = .result, y = .solution, ...)
## Default S3 method:
gradethis_equal(x, y, tolerance = sqrt(.Machine$double.eps), ...)
## S3 method for class 'list'
gradethis_equal(x, y, tolerance = sqrt(.Machine$double.eps), ...)
x, y |
Two objects to compare |
... |
Additional arguments passed to methods |
tolerance |
If non- It uses the same algorithm as |
A logical value of length one, or an internal gradethis error.
gradethis_equal(default)
: The default comparison method, which uses waldo::compare
gradethis_equal(list)
: The comparison method for lists
gradethis_equal(mtcars[mtcars$cyl == 6, ], mtcars[mtcars$cyl == 6, ])
gradethis_equal(mtcars[mtcars$cyl == 6, ], mtcars[mtcars$cyl == 4, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.