Description Usage Arguments Value Examples
View source: R/replace_incomplete.R
Replaces incomplete sentence end marks (.., ..., .?, ..?, en & em dash etc.)
with "|"
.
1 | replace_incomplete(x, replacement = "|", ...)
|
x |
The text variable. |
replacement |
A string to replace incomplete punctuation marks with. |
... |
ignored. |
Returns a text variable (character sting) with incomplete sentence marks (.., ..., .?, ..?, en & em dash etc.) replaced with "|".
1 2 3 | x <- c("the...", "I.?", "you.", "threw..", "we?")
replace_incomplete(x)
replace_incomplete(x, '...')
|
[1] "the|" "I|" "you." "threw|" "we?"
[1] "the..." "I..." "you." "threw..." "we?"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.