fastGrep | 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 = getOnto("chebi_lite")
ind = fastGrep("tanespimycin", cheb, "name")
cheb$name[ind]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.