Replaces incomplete sentence end marks (.., ..., .?, ..?, en & em dash etc.)
with "|"
.
incomplete_replace(text.var, scan.mode = FALSE)incomp(text.var, scan.mode = FALSE)
The text variable.
logical. If TRUE
only scans and reports incomplete
sentences.
Returns a text variable (character sting) with incomplete sentence
marks (.., ..., .?, ..?, en & em dash etc.) replaced with "|". If scan mode
is TRUE
returns a data frame with incomplete sentence location.
# NOT RUN {
x <- c("the...", "I.?", "you.", "threw..", "we?")
incomplete_replace(x)
incomp(x)
incomp(x, scan.mode = TRUE)
# }
Run the code above in your browser using DataLab