Description Usage Arguments Value Examples
This function compares two lists or environments. It is useful for comparing results obtained in R and Octave.
1 | check.equal(x, y, msg)
|
x |
a |
y |
a |
msg |
a character string used (if not missing) in a message that is printed before the comparison. It is useful for separating multiple sequential comparisons. |
No value is returned, but prints out:
the element/variable names of each input list or environment,
the result of the comparison of the elements in x
and the
corresponding element in y
– if present.
1 2 3 4 5 | X <- matrix(1:64, 8)
ref <- svd(X)
res <- .O$svd(X, argout=3)
check.equal(ref, res, "R and Octave function 'svd'")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.