loadPlpShareable {PatientLevelPrediction} | R Documentation |
Loads the plp result saved as json/csv files for transparent sharing
Description
Loads the plp result saved as json/csv files for transparent sharing
Usage
loadPlpShareable(loadDirectory)
Arguments
loadDirectory |
The directory with the results as json/csv files |
Details
Load the main results from json/csv files into a runPlp object
Value
The runPlp object
Examples
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 1000)
saveLoc <- file.path(tempdir(), "loadPlpShareable")
results <- runPlp(plpData, outcomeId = 3, saveDirectory = saveLoc)
savePlpShareable(results, saveLoc)
dir(saveLoc)
loadedResults <- loadPlpShareable(saveLoc)
# clean up
unlink(saveLoc, recursive = TRUE)
[Package PatientLevelPrediction version 6.4.1 Index]