Learn R Programming

stringr (version 0.6.2)

ignore.case: Ignore case of match.

Description

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

Usage

ignore.case(string)

Arguments

string
pattern for which to ignore case

See Also

Other modifiers: fixed, perl

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 DataLab