grapes-include-grapes: Convenience inflix operator to return vector elements...

Description Usage Arguments Value Examples

Description

Convenience inflix operator to return vector elements matching a regular expression.

Usage

1
vector %include% pattern

Arguments

vector

Vector.

pattern

Pattern.

Value

A vector of elements in vector matching pattern.

Examples

1
2
3
4
5
6
library(magrittr)
library(dt.inflix)

  v <- c("Apple", "apple", "APPLE")

  v %include% "(Ap|AP)"

andrewrech/dt.inflix documentation built on Nov. 23, 2017, 10:08 a.m.