like-sql: like operator for R

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Provides a ‘like’ operator for R similar to the ‘like’ operator in SQL for pattern matching

Usage

1
	x 

Arguments

x

A vector of character strings

pattern

A character string containing a search pattern

Details

underlying function is grep

Value

A logical vector, the same length of x, indicating whether each element of x matched pattern.

Author(s)

Christopher G. Green christopher.g.green@gmail.com

See Also

grep

Examples

1
2

christopherggreen/cggmisc documentation built on May 13, 2019, 7:04 p.m.