str_detect_one_quote_pattern: Detect a quote pattern in text

View source: R/str_detect_quote.R

str_detect_one_quote_patternR Documentation

Detect a quote pattern in text

Description

Detect a quote pattern in text

Usage

str_detect_one_quote_pattern(x, pattern, .verbose = FALSE)

Arguments

x

character vector

pattern

a list with elements "s" (unit-length character specifying regex to match quote start) , "e" (unit-length character specifying regex to match quote end) , and "min_words" unit-length integer specifying the min. No. words to count a match as a quote) See text.quote.patterns.

.verbose

logical. verbosity

Value

A list with elements

quotes

logical indicating whether or not x contains a quote that matches the quote pattern (pattern)

n_quotes

non-negative integer, the number of quotes detected

n_words

non-negative integer, the number of words contained in the quote

n_chars

non-negative integer, the number of characters contained in the quote


haukelicht/politicaltweets documentation built on July 3, 2023, 4:11 a.m.