Description Usage Arguments Value Author(s) See Also Examples
View source: R/replaceVariables.R
This function searches for all rmake
variables in given vector x
and replaces them
with their values that are defined in the vars
argument. The rmake
variable is a identified
by the $[VARIABLE_NAME]
string.
1 | replaceVariables(x, vars)
|
x |
A character vector where to replace the |
vars |
A named character vector with variable definitions (names are variable names, values are variable values) |
A character vector with rmake
variables replaced with their values
Michal Burda
1 2 | vars <- c(SIZE='small', METHOD='abc')
replaceVariables('result-$[SIZE]-$[METHOD].csv', vars) # returns 'result-small-abc.csv'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.