has_endmark {textclean} | R Documentation |
A logical test of missing sentence ending punctuation.
has_endmark(x, endmarks = c("?", ".", "!"), ...)
x |
A character vector. |
endmarks |
The potential ending punctuation marks, |
... |
ignored. |
Returns a logical vector.
x <- c(
"I like it.",
"Et tu?",
"Not so much",
"Oh, I understand.",
"At 3 p.m., we go",
NA
)
has_endmark(x)