replace_incomplete: Denote replace_incompletelete End Marks With "|"

Description Usage Arguments Value Examples

Description

Replaces replace_incompletelete sentence end marks (.., ..., .?, ..?, en & em dash etc.) with "|".

Usage

1
replace_incomplete(x, replacement = "|", ...)

Arguments

x

The text variable.

replacement

A string to replace incomplete punctuation marks with.

...

ignored.

Value

Returns a text variable (character sting) with replace_incompletelete sentence marks (.., ..., .?, ..?, en & em dash etc.) replaced with "|". If scan mode is TRUE returns a data frame with replace_incompletelete sentence location.

Examples

1
2
3
x <- c("the...",  "I.?", "you.", "threw..", "we?")
replace_incomplete(x)
replace_incomplete(x, '...')

trinker/textcleanLite documentation built on June 1, 2019, 12:52 a.m.