Learn R Programming

RVerbalExpressions (version 0.0.0.9000)

with_any_case: Control case-insensitive matching.

Description

Control case-insensitive matching.

Usage

with_any_case(.data = NULL, enable = TRUE)

Arguments

.data

Expression to append, typically pulled from the pipe %>%

enable

Whether to enable this behavior

Details

Equivalent to adding or removing the i modifier.

Examples

Run this code
# NOT RUN {
with_any_case()

# case insensitive
x <- find(value = "abc") %>%
  with_any_case()

# case sensitive
y <- find(value = "abc") %>%
  with_any_case(enable = FALSE)

grepl(x, "ABC") # should be true
grepl(y, "ABC") # should be false
# }

Run the code above in your browser using DataLab