replaceSymbols: Replace symbols in a character vector by other symbols

Description Usage Arguments Value Examples

Description

Replace symbols in a character vector by other symbols

Usage

1
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

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

dlill/cOde2ndsens documentation built on May 30, 2019, 1:37 p.m.