I just wanted to know how to cut all Lines after a specific set of characters in R.
Let's sat I am having the following set of characters:
documentName <- "Hello my name is Johann my had is the largest to be deleted X"
My desired outcome is:
documentName <- "Hello my name is Johann"