contains_question_mark: Does a string contain a question mark?

View source: R/contains_question_mark.R

contains_question_markR Documentation

Does a string contain a question mark?

Description

Find which strings contain a question mark. This function uses the following regular expression: [\?].

Usage

contains_question_mark(str, convert_NA_to_FALSE = TRUE)

Arguments

str

A character vector of strings.

convert_NA_to_FALSE

Whether to treat NA as NA (convert_NA_to_FALSE = FALSE) or whether to return FALSE when an NA is found (convert_NA_to_FALSE = TRUE).

Value

A logical vector.


maialab/quincunx documentation built on Aug. 18, 2022, 5:31 a.m.