This function drops the cohort statistics tables.
Usage
dropCohortStatsTables(
connectionDetails = NULL,
connection = NULL,
cohortDatabaseSchema,
cohortTableNames = getCohortTableNames(),
dropCohortTable = FALSE
)Arguments
- connectionDetails
An object of type
connectionDetailsas created using thecreateConnectionDetailsfunction in the DatabaseConnector package. Can be left NULL ifconnectionis provided.- connection
An object of type
connectionas created using theconnectfunction in the DatabaseConnector package. Can be left NULL ifconnectionDetailsis provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.- 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
getCohortTableNamesfor more details.- dropCohortTable
Optionally drop cohort table in addition to stats tables (defaults to FALSE)