Learn R Programming

PatientProfiles (version 1.4.2)

addCohortName: Add cohort name for each cohort_definition_id

Description

Add cohort name for each cohort_definition_id

Usage

addCohortName(cohort)

Value

cohort with an extra column with the cohort names

Arguments

cohort

cohort to which add the cohort name

Examples

Run this code
# \donttest{
library(PatientProfiles)

cdm <- mockPatientProfiles()
cdm$cohort1 |>
  addCohortName()
# }

Run the code above in your browser using DataLab