termhas: Select terms which contain a particular string

Description Usage Arguments Value See Also Examples

View source: R/termhas.R

Description

Returns a selection object with terms matching the regular expression pattern.

Usage

1
termhas(regexpr, exact = FALSE, ignorecase = TRUE)

Arguments

regexpr

a single search pattern or vector of patterns, which can use POSIX regular expressions. If it is a vector of search patterns the results are combined using OR.

exact

whether to search for an exact term instead of using regular expression matching.

ignorecase

whether to use case sensitive matching; the default is to ignore case.

Value

a selection object.

See Also

assigncat, codematch, dictis, medcodeis, explode, setdictionary

Examples

1
2
3
setdictionary('opcs')
termhas('bronchoscop')
termhas('stab.*angina')

CALIBERcodelists documentation built on Feb. 28, 2020, 3:01 a.m.