R/HelperFunctions.R
filterByCohortDefinitionId.Rd
Filter covariates by cohort definition IDs
filterByCohortDefinitionId(covariateData, cohortId = 1, cohortIds = c(1))
An object of type CovariateData
DEPRECATED The cohort definition IDs to keep.
The cohort definition IDs to keep.
An object of type covariateData
.
# \donttest{
covariateData <- FeatureExtraction::createEmptyCovariateData(
cohortIds = c(1, 2),
aggregated = TRUE,
temporal = FALSE
)
covData <- filterByCohortDefinitionId(
covariateData = covariateData,
cohortIds = c(1)
)
# }