saveCovariateData: Save the covariate data to folder

View source: R/CovariateData.R

saveCovariateDataR Documentation

Save the covariate data to folder

Description

saveCovariateData saves an object of type covariateData to folder.

Usage

saveCovariateData(covariateData, file)

Arguments

covariateData

An object of type covariateData as generated using getDbCovariateData.

file

The name of the folder where the data will be written. The folder should not yet exist.

Details

The data will be written to a set of files in the folder specified by the user.

Examples

## Not run: 
covariateData <- FeatureExtraction:::createEmptyCovariateData(
  cohortIds = 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)

## End(Not run)


OHDSI/FeatureExtraction documentation built on April 1, 2024, 9:31 a.m.