View source: R/CohortQueries.R
| getCohortCounts | R Documentation |
This function extracts all cohort counts for the cohorts of interest.
getCohortCounts(
connectionHandler,
schema,
cgTablePrefix = "cg_",
databaseTable = "database_meta_data",
cohortIds = NULL
)
connectionHandler |
A connection handler that connects to the database and extracts sql queries. Create a connection handler via 'ResultModelManager::ConnectionHandler$new()'. |
schema |
The result database schema (e.g., 'main' for sqlite) |
cgTablePrefix |
The prefix used for the cohort generator results tables |
databaseTable |
The name of the table with the database details (default 'database_meta_data') |
cohortIds |
Optionally a list of cohortIds to restrict to |
Specify the connectionHandler, the schema and the cohort IDs
Returns a data.frame with the cohort inclusion rules
Other Cohorts:
getCohortAttrition(),
getCohortDefinitions(),
getCohortInclusionRules(),
getCohortInclusionStats(),
getCohortInclusionSummary(),
getCohortMeta(),
getCohortSubsetAttrition(),
getCohortSubsetDefinitions(),
getSubsetText(),
processCohortDefinitionsForQuarto(),
processCohorts(),
restrictCohortDefinitionsForQuarto()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cohortMeta <- getCohortCounts(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.