saveCovariateData
saves an object of type covariateData to folder.
saveCovariateData(covariateData, file)
An object of type covariateData
as generated using
getDbCovariateData
.
The name of the folder where the data will be written. The folder should not yet exist.
The data will be written to a set of files in the folder specified by the user.
if (FALSE) {
covariateData <- FeatureExtraction:::createEmptyCovariateData(
cohortId = 1,
aggregated = FALSE,
temporal = FALSE
)
# For this example we'll use a temporary file location:
fileName <- tempfile()
saveCovariateData(covariateData = covariateData, file = fileName)
# Cleaning up the file used in this example:
unlink(fileName)
}