loadPlpData {PatientLevelPrediction} | R Documentation |
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)
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.
Value
An object of class plpData.
Examples
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 500)
saveLoc <- file.path(tempdir(), "loadPlpData")
savePlpData(plpData, saveLoc)
dir(saveLoc)
# clean up
unlink(saveLoc, recursive = TRUE)
[Package PatientLevelPrediction version 6.4.1 Index]