loadPrediction | R Documentation |
Loads the prediction dataframe to json
loadPrediction(fileLocation)
fileLocation |
The location with the saved prediction |
Loads the prediciton json file
The prediction data.frame
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n = 1000)
saveLoc <- file.path(tempdir(), "loadPrediction")
results <- runPlp(plpData, outcomeId = 3, saveDirectory = saveLoc)
savePrediction(results$prediction, saveLoc)
dir(saveLoc)
loadedPrediction <- loadPrediction(file.path(saveLoc, "prediction.json"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.