powered by
Function to extract if a cohort exists
exist.cohort(population, cohort)
TRUE/FALSE
Population list
Cohort to check if it is contained in the population list
data(ex_pop) exist.cohort(ex_pop, cohort = "StrangeName_42") exist.cohort(ex_pop, cohort = "Cohort_1_M")
Run the code above in your browser using DataLab