powered by
Detect missing endmarks and replace with the desired symbol.
add_missing_endmark(x, replacement = "|", endmarks = c("?", ".", "!"), ...)
The text variable.
Character string equal in length to pattern or of length one which are a replacement for matched pattern.
The potential ending punctuation marks.
Additional arguments passed to has_endmark.
has_endmark
Returns a vector with missing endmarks added.
# NOT RUN { x <- c( "This in a", "I am funny!", "An ending of sorts%", "What do you want?" ) add_missing_endmark(x) # }
Run the code above in your browser using DataLab