Learn R Programming

MoBPS (version 1.13.1)

exist.cohort: Function to extract if a cohort exists

Description

Function to extract if a cohort exists

Usage

exist.cohort(population, cohort)

Value

TRUE/FALSE

Arguments

population

Population list

cohort

Cohort to check if it is contained in the population list

Examples

Run this code
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