
Last chance! 50% off unlimited learning
Sale ends in
Automatically detect missing endmarks and replace with the |
endmark
symbol to indicate an incomplete sentence.
add_incomplete(text.var, endmarks = "[.?|!]+$", silent = FALSE)
The text variable.
A reguar expression to check for endmarks.
logical. If TRUE
messages are not printed out.
Returns a vector with missing endmarks replaced with |
.
# NOT RUN {
add_incomplete(
c(
"This in a",
"I am funny!",
"An ending of sorts%",
"What do you want?"
)
)
# }
Run the code above in your browser using DataLab