multigrep: Grepl for multiple strings

Description Usage Arguments Value Examples

Description

Creates a logical vector of whether multiple strings appear in x. This package uses grepl to search for incomplete strings in an object. Equivalent to using x incomplete strings.

Usage

1
multigrep(vect, x)

Arguments

vect

Vector of character strings to be matched

x

Object you want to search for matches

Value

A logical of whether match is found

Examples

1
2
3
4
vect <- c("a", "b", "c")
x <- c("apple", "kiwi", "melon", "pear")
multigrep(vect,x)
[1]  TRUE FALSE FALSE TRUE

elliefewings/multigrep documentation built on May 8, 2019, 11:56 p.m.