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

Description Usage Arguments Value Examples

View source: R/symbolics.R

Description

Replace a binary operator in a string by a function

Usage

1
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

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

cOde documentation built on May 29, 2017, 10:15 a.m.

Search within the cOde package
Search all R packages, documentation and source code