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
fastGrep(patt, onto, field, ...)
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 |
logical vector indicating vector or list elements where a match is found
cheb = getChebiOnto() ind = fastGrep("17-AAG", cheb, "synonym") cheb$name[ind]