grapes-like-grapes: Match strings with SQL-like syntax

Description Usage Details Value

Description

This is a convenience wrapper around 'stringr::str_detect'.

Usage

1
string %like% pattern

Details

Inspired by 'data.table::like', which uses 'base::grepl' instead. Because this function uses 'stringr::str_detect' the second argument (the pattern) can also be a vector.

See the help page for [stringr::str_detect()] for more details.

Value

A logical vector indicating whether each element had a match.


lukerobert/luketools documentation built on Jan. 24, 2020, 2:15 a.m.