R/grepvec.R

Defines functions grepvec

Documented in grepvec

## File Name: grepvec.R
## File Version: 0.02

grepvec <- function( pattern.vec, x, operator="AND", value=FALSE, ...)
{
    z <- grep.vec( pattern.vec=pattern.vec, x=x, operator=operator, ...)
    if (value){
        z <- z$x
    } else {
        z <- z$index.x
    }
    return(z)
}

Try the miceadds package in your browser

Any scripts or data that you put into this service are public.

miceadds documentation built on May 29, 2024, 11:05 a.m.