Learn R Programming

FeatureExtraction (version 3.7.2)

filterByCohortDefinitionId: Filter covariates by cohort definition IDs

Description

Filter covariates by cohort definition IDs

Usage

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

Value

An object of type covariateData.

Arguments

covariateData

An object of type CovariateData

cohortId

DEPRECATED The cohort definition IDs to keep.

cohortIds

The cohort definition IDs to keep.

Examples

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

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

Run the code above in your browser using DataLab