I am deleting all line break dashes followed by a space('- ') from a character string in R, expect from those preceded by 'en' (has something to do with Dutch grammar). Using this example (gsub with exception in R) I got close to an answer, but just cannot figure it out completely.
This is an example of a string
string <- "word1 long- er word2, word3 en- word4"
expected result:
"word1 longer word2, word3 en- word4"