lgrep: grep for a pattern in a list of values.

Description Usage Arguments Value Author(s)

Description

Why? grep normally tries to find a pattern in a vector of values; what if you have a list of vectors, and want to know in which vector does your value appear??

Usage

1

Arguments

pattern

a character(1)

x

a list, usually where each element is a character vector.

...

arguments passed to grepl

Value

returns the index into the list that contains your pattern.

Author(s)

Mark Cowley, 2009-10-16


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.