Skip to contents

Wrap list of regular expressions for matching age bounds in disease category names, so that the resulting regular expressions can be used for different purposes (extraction, removal, or validation)

Usage

wrap_age_patterns(
  patterns,
  purpose = c("extraction", "removal", "validate"),
  prefix = ""
)

Arguments

patterns

vector of regular expressions for matching age bound information in disease category names

purpose

character string indicating the purpose of the resulting regular expression

prefix

pattern to match at the beginning of the string that marks the beginning of age information