object.substitute: Replace mathematical functions or variables

Description Usage Arguments Details Value Author(s)

Description

Replace mathematical functions or variables in a string (usually the body of a function in the form of a string) allowing further manipulations.

Usage

1
object.substitute(func, replaced, replacement)

Arguments

func

A string. Although it is named as "func", this argument must be string-type. Function body2string converts an R function into a string.

replaced

A string or a vector of string to be replaced. This must be a function or a variable.

replacement

A string or a vector of string to replace "replaced". This can be anything.

Details

This is a generic function used in some other fuctions in the package "ComplexAnalysis" allowing symbolic manipulations in mathematical functions.

Value

A string with replacements.

Author(s)

Char Leung


ComplexAnalysis documentation built on Jan. 15, 2017, 10:24 a.m.