incomplete_replace {qdap} | R Documentation |
Denote Incomplete End Marks With "|"
Description
Replaces incomplete sentence end marks (.., ..., .?, ..?, en & em dash etc.)
with "|"
.
Usage
incomplete_replace(text.var, scan.mode = FALSE)
incomp(text.var, scan.mode = FALSE)
Arguments
text.var |
The text variable. |
scan.mode |
logical. If |
Value
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.
Examples
## Not run:
x <- c("the...", "I.?", "you.", "threw..", "we?")
incomplete_replace(x)
incomp(x)
incomp(x, scan.mode = TRUE)
## End(Not run)
[Package qdap version 2.4.6 Index]