replaceOperation: Replace a binary operator in a string by a function

View source: R/symbolics.R

replaceOperationR Documentation

Replace a binary operator in a string by a function

Description

Replace a binary operator in a string by a function

Usage

replaceOperation(what, by, x)

Arguments

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

Value

vector of type character

Examples

replaceOperation("^", "pow", "(x^2 + y^2)^.5")

cOde documentation built on March 18, 2022, 6:54 p.m.

Related to replaceOperation in cOde...