View source: R/listBatchReplace.R
listBatchReplace | R Documentation |
listBatchReplace
replaces in list lst
all entries with value searchValue
by replaceBy
listBatchReplace(
lst,
searchValue,
replaceBy,
silent = FALSE,
debug = FALSE,
callFrom = NULL
)
lst |
input-list to be used for replacing |
searchValue |
(character, length=1) |
replaceBy |
(character, length=1) |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
This function returns a corrected list
basic replacement sub
in grep
lst1 <- list(aa=1:4, bb=c("abc","efg","abhh","effge"), cc=c("abdc","efg"))
listBatchReplace(lst1, search="efg", repl="EFG", sil=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.