fastGrep {ontoProc} | R Documentation

## some fields of interest are lists, and grep per se should not be used – this function checks and uses grep within vapply when appropriate

### Description

some fields of interest are lists, and grep per se should not be used – this function checks and uses grep within vapply when appropriate

### Usage

    fastGrep(patt, onto, field, ...)

### Arguments

`patt` | a regular expression whose presence in field should be checked
`onto` | an ontologyIndex instance
`field` | the ontologyIndex component to be searched
`...` | passed to grep

### Value

logical vector indicating vector or list elements where a match is found

### Examples

    cheb = getChebiOnto()
    ind = fastGrep("17-AAG", cheb, "synonym")
    cheb$name[ind]

[Package ontoProc version 1.14.0 Index]