Get term names by searching with (partial) keywords

get_terms_by_keywords(patterns, terms, pos_neg = "pos", all_any = "all")

Arguments

patterns

keywords to match (grepl) term names

terms

character vector to be grepl searched

pos_neg

return positive matches or negate matches

all_any

need all or any patterns to match search terms

Value

character vector with matching terms by patterns

Examples

get_terms_by_keywords('circa', c('circadian rhythm', 'no match', 'circadian clock'))
#> [1] "circadian rhythm" "circadian clock"