replaceSymbols: Replace symbols in a character vector by other symbols

View source: R/symbolics.R

replaceSymbolsR Documentation

Replace symbols in a character vector by other symbols

Description

Replace symbols in a character vector by other symbols

Usage

replaceSymbols(what, by, x)

Arguments

what

vector of type character, the symbols to be replaced, e.g. c("A", "B")

by

vector of type character, the replacement, e.g. c("x[0]", "x[1]")

x

vector of type character, the object where the replacement should take place

Value

vector of type character, conserves the names of x.

Examples

replaceSymbols(c("A", "B"), c("x[0]", "x[1]"), c("A*B", "A+B+C"))

dkaschek/cOde documentation built on April 19, 2022, 9:16 a.m.