doReplace(HFWutils) | R Documentation |
performs replacements in a string using a dataframe set up with initReplaceBy
doReplace(sqlCommand, ReplaceBy, fixed = TRUE)
sqlCommand |
the target string |
ReplaceBy |
a dataframe set up with initReplaceBy |
fixed |
~~Describe fixed here~~ |
~~ If necessary, more details than the description above ~~
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
....
~~further notes~~
~Make other sections like Warning with section{Warning }{....} ~
Felix Wittmann hfwittmann@gmail.com
~put references to the literature/web site here ~
~~objects to See Also as initReplaceBy
, ~~~
ReplaceBy <- initReplaceBy(2) ReplaceBy[1,] <- c(Replace = "TABLE" , By = 'USArrests') ReplaceBy[2,] <- c(Replace = "CONDITION" , By = 'Assault>250') sqlCommand <- "SELECT * FROM TABLE WHERE CONDITION" doReplace(sqlCommand, ReplaceBy) # "SELECT * FROM USArrests WHERE Assault>250"