Extracts covariate names using a regular-expression.

grepCovariateNames(pattern, object)

Arguments

pattern

A regular expression with which to name covariate names

object

An R object of type cohortMethodData or covariateData.

Value

Returns a data.frame containing information about covariates that match a regular expression. This data.frame has the following columns:

covariateId

Numerical identifier for use in model fitting using these covariates

covariateName

Text identifier

analysisId

Analysis identifier

conceptId

OMOP common data model concept identifier, or 0

Details

This function extracts covariate names that match a regular-expression for a cohortMethodData or covariateData object.