[Solved] How can I find compound words, removing spaces between them and replace them in my corpus?

If all your compound terms are separated only by blanks, you can use gsub: > x = c(“hello World”, “good Morning”, “good Night”) > y = gsub(pattern = ” “, replacement = “”, x = x) > print(y) [1] “helloWorld” “goodMorning” “goodNight” You can always add more patterns to pattern argument. Read more about regular … Read more