replaceSymbols {cOde}R 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"))

[Package cOde version 1.1.1 Index]