filterByCohortDefinitionId: Filter covariates by cohort definition IDs

View source: R/HelperFunctions.R

filterByCohortDefinitionIdR Documentation

Filter covariates by cohort definition IDs

Description

Filter covariates by cohort definition IDs

Usage

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


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

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



FeatureExtraction documentation built on Oct. 18, 2024, 9:06 a.m.