powered by
Replaces incomplete sentence end marks (.., ..., .?, ..?, en & em dash etc.) with "|".
"|"
replace_incomplete(x, replacement = "|", ...)
The text variable.
A string to replace incomplete punctuation marks with.
ignored.
Returns a text variable (character sting) with incomplete sentence marks (.., ..., .?, ..?, en & em dash etc.) replaced with "|".
# NOT RUN { x <- c("the...", "I.?", "you.", "threw..", "we?") replace_incomplete(x) replace_incomplete(x, '...') # }
Run the code above in your browser using DataLab