exportCohortStatsTables | R Documentation |
This function retrieves the data from the cohort statistics tables and writes them to the inclusion statistics folder specified in the function call. NOTE: inclusion rule names are handled in one of two ways:
1. You can specify the cohortDefinitionSet parameter and the inclusion rule names will be extracted from the data.frame. 2. You can insert the inclusion rule names into the database using the insertInclusionRuleNames function of this package.
The first approach is preferred as to avoid the warning emitted.
exportCohortStatsTables(
connectionDetails,
connection = NULL,
cohortDatabaseSchema,
cohortTableNames = getCohortTableNames(),
cohortStatisticsFolder,
snakeCaseToCamelCase = TRUE,
fileNamesInSnakeCase = FALSE,
incremental = FALSE,
databaseId = NULL,
minCellCount = 5,
cohortDefinitionSet = NULL,
tablePrefix = ""
)
connectionDetails |
An object of type |
connection |
An object of type |
cohortDatabaseSchema |
Schema name where your cohort tables reside. Note that for SQL Server, this should include both the database and schema name, for example 'scratch.dbo'. |
cohortTableNames |
The names of the cohort tables. See |
cohortStatisticsFolder |
The path to the folder where the cohort statistics folder where the results will be written |
snakeCaseToCamelCase |
Should column names in the exported files convert from snake_case to camelCase? Default is FALSE |
fileNamesInSnakeCase |
Should the exported files use snake_case? Default is FALSE |
incremental |
If |
databaseId |
Optional - when specified, the databaseId will be added to the exported results |
minCellCount |
To preserve privacy: the minimum number of subjects contributing to a count before it can be included in the results. If the count is below this threshold, it will be set to '-minCellCount'. |
cohortDefinitionSet |
The
Optionally, this data frame may contain:
|
tablePrefix |
Optional - allows to append a prefix to the exported file names. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.