fastGrep: some fields of interest are lists, and grep per se should not...

View source: R/fastGrep.R

fastGrepR 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 = getOnto("chebi_lite")
ind = fastGrep("tanespimycin", cheb, "name")
cheb$name[ind]

vjcitn/ontoProc documentation built on Nov. 27, 2024, 4:38 p.m.