contains_question_mark {quincunx}R 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.


[Package quincunx version 0.1.10 Index]