multiREvaluator | R Documentation |
Evaluates an R-language expression in one or more R-language interpreters and optionally compares the results.
RCompare(expr, REvaluators = DefaultREvaluators(), substitute = TRUE, data = NULL, envirData = parent.frame(), tolerance = 0, returnValues = TRUE, verbose = FALSE, randomCheck = FALSE, ...) multiREvaluator(expr, REvaluators = DefaultREvaluators(), substitute = TRUE, data = NULL, envirData = parent.frame(), verbose = FALSE, sideBySide = TRUE, PRINTFUN = "print", randomCheck = FALSE, ...) DefaultREvaluators()
expr |
an expression to evaluate. |
REvaluators |
a list of |
substitute |
a logical value. Specifies how to use the
|
data |
if not |
envirData |
the environment where items in the character vector |
verbose |
a logical value. If |
tolerance |
a small positive numeric value that is passed to |
returnValues |
a logical value.
|
sideBySide |
a logical value. If |
PRINTFUN |
a function or the name of a function. This is passed to |
randomCheck |
a logical value. If The check determines if |
... |
|
multiREvaluator |
returns a list of the results of evaluating the expression
in each R interpreter.
The names of the list are taken from |
|
usually returns the same value as |
|
returns just the list of differences. |
|
returns |
makeREvaluator
, TERREvaluator
, sideBySide
## Not run: RCompare(log2(xTest), data = list(xTest=4:16)) RCompare(lm(hp ~ gear + am, data=mtcars), REvaluators=list(REvaluator, LocalEvaluator), tol=1e-12) myData <- subset(iris, Species == "setosa", -Species) RCompare(prcomp(myData), data = "myData") RCompare(kmeans(cbind(sin(1:10), cos(1:10)), 3), randomCheck=TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.