search for: placepatterns

Displaying 1 result from an estimated 1 matches for "placepatterns".

Did you mean: replacepatterns
2009 Aug 11
1
re placePatterns() for multiple words replacement in tm
Hi all, I wonder how you can replace all words that need to be changed using replacePatterns(). The following is my code. I want to replace both "abc" and "def" to " Yes ". However, I can only replace the first occurrence in sample[[1]]. > sample[[1]] [1] abc def ghi > change <- c("abc","def") > replacePatterns(sample[[1]],c...