Learn R Programming

PatientLevelPrediction (version 6.4.1)

loadPlpData: Load the plpData from a folder

Description

loadPlpData loads an object of type plpData from a folder in the file system.

Usage

loadPlpData(file, readOnly = TRUE)

Value

An object of class plpData.

Arguments

file

The name of the folder containing the data.

readOnly

If true, the data is opened read only.

Details

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

Examples

Run this code
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 500)
saveLoc <- file.path(tempdir(), "loadPlpData")
savePlpData(plpData, saveLoc)
dir(saveLoc)
# clean up
unlink(saveLoc, recursive = TRUE)

Run the code above in your browser using DataLab