View source: R/CohortQueries.R
processCohorts | R Documentation |
This function lets you split the cohort data.frame into the parents and the children per parent.
processCohorts(cohort)
cohort |
The data.frame extracted using 'getCohortDefinitions()' |
Finds the parent cohorts and children cohorts
Returns a list containing parents: a named vector of all the parent cohorts and cohortList: a list the same length as the parent vector with the first element containing all the children of the first parent cohort, the second element containing the children of the second parent, etc.
Other Cohorts:
getCohortDefinitions()
,
getCohortSubsetDefinitions()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cohortDef <- getCohortDefinitions(
connectionHandler = connectionHandler,
schema = 'main'
)
parents <- processCohorts(cohortDef)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.