powered by
listBatchReplace replaces in list lst all entries with value searchValue by replaceBy
listBatchReplace
lst
searchValue
replaceBy
listBatchReplace( lst, searchValue, replaceBy, silent = FALSE, debug = FALSE, callFrom = NULL )
This function returns a corrected list
input-list to be used for replacing
(character, length=1)
(logical) suppress messages
(logical) additional messages for debugging
(character) allow easier tracking of messages produced
basic replacement sub in grep
sub
grep
lst1 <- list(aa=1:4, bb=c("abc","efg","abhh","effge"), cc=c("abdc","efg")) listBatchReplace(lst1, search="efg", repl="EFG", sil=FALSE)
Run the code above in your browser using DataLab