grapes-likef-grapes: Convenience inflix operator to return logical vector of...

Description Usage Arguments Value Examples

Description

Convenience inflix operator to return logical vector of elements matching a fixed pattern.

Usage

1
vector %likef% pattern

Arguments

vector

Vector.

pattern

Pattern.

Value

A logical vector the same length as vector of elements matching pattern.

Examples

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

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

  v %likef% "ap"

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