[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

[Solved] How can I analzye only specific sentences in R? [closed]

Data: lorem <- “\nLorem ipsum dolor sit amet, consectetur adipisicing elit,\nsed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\nut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit\nin voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur\nsint occaecat cupidatat non … Read more