Learn R Programming

textclean (version 0.9.3)

has_endmark: Test for Incomplete Sentences

Description

A logical test of missing sentence ending punctuation.

Usage

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

Arguments

x

A character vector.

endmarks

The potential ending punctuation marks,

ignored.

Value

Returns a logical vector.

Examples

Run this code
# NOT RUN {
x <- c(
    "I like it.", 
    "Et tu?",  
    "Not so much", 
    "Oh, I understand.",  
    "At 3 p.m., we go",
    NA
)
has_endmark(x)
# }

Run the code above in your browser using DataLab