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

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

x <- c(
    "I like it.", 
    "Et tu?",  
    "Not so much", 
    "Oh, I understand.",  
    "At 3 p.m., we go",
    NA
)
has_endmark(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.