findSubexprs | R Documentation |
Find common sub-expressions in expr
.
findSubexprs(expr, simplify = FALSE, tag = ".expr", verbose = FALSE, ...)
expr |
An expression represented in a variety of ways. See Details. |
simplify |
Whether to simplify. |
tag |
to be attached to the returned object(s) |
verbose |
If |
... |
Additional arguments, passed to |
.
If expr
contains repeated subexpressions, this function
returns an expression to evaluate them just once and store them
in temporary variables with names starting with the tag
.
This function is used internally by codeDeriv
.
findSubexprs(expression(x^2 + x^2), tag = ".example")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.