Filter covariates by cohort definition IDs

filterByCohortDefinitionId(covariateData, cohortId = 1, cohortIds = c(1))

Arguments

covariateData

An object of type CovariateData

cohortId

DEPRECATED The cohort definition IDs to keep.

cohortIds

The cohort definition IDs to keep.

Value

An object of type covariateData.

Examples

# \donttest{
covariateData <- FeatureExtraction::createEmptyCovariateData(
  cohortIds = c(1, 2),
  aggregated = TRUE,
  temporal = FALSE
)

covData <- filterByCohortDefinitionId(
  covariateData = covariateData,
  cohortIds = c(1)
)
# }