Learn R Programming

ComplexAnalysis (version 1.0)

object.substitute: Replace mathematical functions or variables

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

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.

Value

A string with replacements.

Details

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