has_endmark: Test for Incomplete Sentences

Description Usage Arguments Value Examples

View source: R/has_endmark.R

Description

A logical test of missing sentence ending punctuation.

Usage

1
has_endmark(x, endmarks = c("?", ".", "!"), ...)

Arguments

x

A character vector.

endmarks

The potential ending punctuation marks,

...

ignored.

Value

Returns a logical vector.

Examples

1
2
3
4
5
6
7
8
9
x <- c(
    "I like it.", 
    "Et tu?",  
    "Not so much", 
    "Oh, I understand.",  
    "At 3 p.m., we go",
    NA
)
has_endmark(x)

trinker/textmod documentation built on Nov. 3, 2021, 7:20 p.m.