powered by
Replace a binary operator in a string by a function
replaceOperation(what, by, x)
character, the operator symbol, e.g. "^"
character, the function string, e.g. "pow"
vector of type character, the object where the replacement should take place
vector of type character
# NOT RUN { replaceOperation("^", "pow", "(x^2 + y^2)^.5") # }
Run the code above in your browser using DataLab