doubleregex: Double Regular Expressions

Description Usage Arguments Value Examples

Description

double.regex takes in two characters and determines if either is a subset of the other. This function uses grepl so multiple instances will catch.

Usage

1
double.regex(a, b, ignore.case = FALSE)

Arguments

a, b

character vectors of length 1

ignore.case

if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching.

Value

Returns a logical of length 1

Examples

1
2
3
  double.regex("apples","oranges")
  double.regex("SUP WICHU GIRL","WICHU")
  double.regex("My name is Inigo Montoya...","MONTOYA",ignore.case=TRUE)

svenhalvorson/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.