Learn R Programming

PatientLevelPrediction (version 6.4.0)

loadPlpShareable: 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)

Value

                             The runPlp object

Arguments

loadDirectory

The directory with the results as json/csv files

Details

Load the main results from json/csv files into a runPlp object

Examples

Run this code
  # takes too long 
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)

Run the code above in your browser using DataLab