Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

replace_incomplete

Denote Incomplete End Marks With "|"


Description

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

Usage

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 incomplete sentence marks (.., ..., .?, ..?, en & em dash etc.) replaced with "|".

Examples

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

textclean

Text Cleaning Tools

v0.9.3
GPL-2
Authors
Tyler Rinker [aut, cre], ctwheels StackOverflow [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.