This function adds cohort json files to a subfolder in input/cohortsToCreate. The subfolder is specified by the type.

addCohortsFiles(
  folderName,
  files,
  cohortFolder = here::here("cohortsToCreate")
)

Arguments

folderName

the name of the folder to add the cohorts

files

a set of json files to move into the input/cohortsToCreate folder of the project

cohortFolder

the input/cohortsToCreate folder to save the cohorts, defaults to the folder within the active project binding