powered by
Replace symbols in a character vector by other symbols
replaceSymbols(what, by, x)
vector of type character, the symbols to be replaced, e.g. c("A", "B")
vector of type character, the replacement, e.g. c("x[0]", "x[1]")
vector of type character, the object where the replacement should take place
vector of type character, conserves the names of x.
# NOT RUN { replaceSymbols(c("A", "B"), c("x[0]", "x[1]"), c("A*B", "A+B+C")) # }
Run the code above in your browser using DataLab