incomplete.replace: Denote Incomplete End Marks With "|"

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
  incomplete.replace(text.var, scan.mode = FALSE)

  incomp(text.var, scan.mode = FALSE)

Arguments

text.var

The text variable.

scan.mode

logical. If TRUE only scans and reports incomplete sentences.

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

1
2
3
4
x <- c("the...",  "I.?", "you.", "threw..", "we?")
incomplete.replace(x)
incomp(x)
incomp(x, scan.mode = TRUE)

trinker/qdap2 documentation built on May 31, 2019, 9:47 p.m.