View source: R/generateDrugUtilisationCohortSet.R
cohortGapEra | R Documentation |
Get the gapEra used to create a cohort
cohortGapEra(cohort, cohortId = NULL)
cohort |
A |
cohortId |
Integer vector refering to cohortIds from cohort. If NULL all cohort definition ids in settings will be used. |
gapEra values for the specific cohortIds
library(DrugUtilisation)
library(CodelistGenerator)
cdm <- mockDrugUtilisation()
druglist <- getDrugIngredientCodes(cdm = cdm,
name = c("acetaminophen", "metformin"))
cdm <- generateDrugUtilisationCohortSet(cdm = cdm,
name = "drug_cohorts",
conceptSet = druglist,
gapEra = 100)
cohortGapEra(cdm$drug_cohorts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.