stringr (version 0.5)

ignore.case: Ignore case of match.

Description

Ignore case of match.

Usage

ignore.case(string)

Arguments

string
pattern for which to ignore case

Details

This function specifies that a pattern should ignore the case of matches.

Examples

Run this code
pattern <- "a.b"
strings <- c("ABB", "aaB", "aab")
str_detect(strings, pattern)
str_detect(strings, ignore.case(pattern))

Run the code above in your browser using DataCamp Workspace