loadPlpShareable | R Documentation |
Loads the plp result saved as json/csv files for transparent sharing
loadPlpShareable(loadDirectory)
loadDirectory |
The directory with the results as json/csv files |
Load the main results from json/csv files into a runPlp object
The runPlp object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.