Returns the number of participants in a cohort if the supplied query were to be applied.

cb_participant_count(cohort, query = list(), keep_query = TRUE)

Arguments

cohort

A cohort object. (Required) See constructor function cb_create_cohort or cb_load_cohort

query

A phenotype query defined using the codephenotype function and logic operators (see example below)

keep_query

Apply newly specified query on top of exisiting query (Default: TRUE)

Value

A list with count of participants in the cohort and the total no. of participants in the dataset.