replaceOperation | R Documentation |
Replace a binary operator in a string by a function
replaceOperation(what, by, x)
what |
character, the operator symbol, e.g. "^" |
by |
character, the function string, e.g. "pow" |
x |
vector of type character, the object where the replacement should take place |
vector of type character
replaceOperation("^", "pow", "(x^2 + y^2)^.5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.