Learn R Programming

searchable (version 0.3.3.1)

ignore.case: Turn on/off case sensitivity for Searchable and Pattern objects

Description

Functions for affecting the case sensitivity of matching/

Usage

ignore.case(object)

## S3 method for class 'SearchableOrPattern': ignore.case(object, ...)

## S3 method for class 'character': ignore.case(object)

## S3 method for class 'default': ignore.case(object)

case_insensitive(object)

use.case(object)

## S3 method for class 'SearchableOrPattern': use.case(object)

## S3 method for class 'character': use.case(object)

## S3 method for class 'default': use.case(object)

case_sensitive(object)

Arguments

object
search pattern or target
...
additional arguments

ignore.case/case_insensitive and use.case/case_sensitive control the case sensitivity of the matching

The default is to perform case-sensitive matching.

See Also

stri_detect_* from the stringi package

Examples

Run this code
use.case("pattern")     # case-sensitive (Default)
  ignore.case("pattern")  # case-insensitive

Run the code above in your browser using DataLab