powered by
Recursively delete entries containing `what` before entry pointed to by `which`
munch(x, wch, what = "")
data vector
Vector of indices to check preceding element for `what`
What to check for and delete if found in preceding element
A vector of the same type as x with all the `what`'s removed if they were at the `which`-(1,2,3...) locations
# NOT RUN { x <- c("a","","b","","","","","c","d","","","","e","") munch( x, c(3,8,9,13) ) # }
Run the code above in your browser using DataLab