View source: R/toolExpectLessDiff.R
toolExpectLessDiff | R Documentation |
tool function for status reporting. It performs a difference check between
two objects and returns either a message via toolStatusMessage
, that
the test was successful or that it failed.
toolExpectLessDiff(x, y, maxdiff, description, level = 0, maxdiff2 = NULL)
x |
object 1 |
y |
object 2 which has the same format as object 1 |
maxdiff |
allowed maximum difference per element between x and y. |
description |
a description of the check |
level |
as the test result will be linked to a function call, the function
needs to know to which call it should be linked. by default ( |
maxdiff2 |
optional additional threshold. If set it will serve as a second, critial threshold
which will throw a warning (instead of a simple note in case of |
Jan Philipp Dietrich
getMadratMessage
, toolExpectTrue
, toolStatusMessage
toolExpectLessDiff(1:3, 2:4, 10, "data is sufficiently close", level = -1)
getMadratMessage("status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.