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

Description Usage Arguments Value Examples

View source: R/fastGrep.R

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

1
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

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

ontoProc documentation built on Nov. 8, 2020, 4:49 p.m.