Validates that all cohorts in the cohort key have results and checks for non-enumeration. Compares expected cohorts from cohortKey.csv against actual results to identify missing or zero-count cohorts.
Usage
validateCohortResults(
exportPath = here::here("dissemination/export/merge"),
resultsFileName = NULL
)Arguments
- exportPath
Character. Path to export folder containing results. Defaults to "dissemination/export/merge"
- resultsFileName
Character. Name of the results file to validate (e.g., "cohortCounts.csv"). If NULL, searches for a file with cohort_id, cohort_entries, and cohort_subjects columns.